19#ifndef PLURAL_INTERNAL_DECLARATIONS
20#define PLURAL_INTERNAL_DECLARATIONS
30#define CASE(A) case A: return o << (" " # A) << " ";
47 default:
return o <<
"Unknown type: [" << (
unsigned long) type <<
"]";
54 static inline std::string _2S(
T i)
63 static inline std::string _2S(number a,
const coeffs r)
80 std::clog << _2S(a, r) <<
", of size: " <<
n_Size(a, r);
83 std::clog << std::endl;
105 const int ll = strlen(argv0);
106 const int l = 5 + ll;
108 s = strncpy(
s, argv0, ll);
109 strncpy(
s + ll,
".log", 5);
113 std::clog.rdbuf(
_ofs.rdbuf());
121 std::clog << std::endl << (
"<world>" ) << std::endl << std::endl;
124 StringSetS(
"ressources in use (as reported by feStringAppendResources(0):\n");
134 std::clog << std::endl << std::endl <<(
"</world>" ) << std::endl << std::endl ;
137 virtual bool setUp() { std::clog << std::endl << std::endl <<(
"<test>" ) << std::endl << std::endl;
return true; }
138 virtual bool tearDown() { std::clog << std::endl << std::endl <<(
"</test>" ) << std::endl << std::endl;
return true; }
142template void CxxTest::doAssertDiffers<n_Procs_s*, void*>(
char const*,
unsigned int,
char const*,
n_Procs_s*,
char const*,
void*,
char const*);
143template void CxxTest::doAssertDiffers<snumber* (*)(long, n_Procs_s*), void*>(
char const*,
unsigned int,
char const*,
snumber* (*)(
long,
n_Procs_s*),
char const*,
void*,
char const*);
144template void CxxTest::doAssertDiffers<snumber* (*)(snumber*, snumber*, n_Procs_s*), void*>(
char const*,
unsigned int,
char const*,
snumber* (*)(
snumber*,
snumber*,
n_Procs_s*),
char const*,
void*,
char const*);
145template void CxxTest::doAssertDiffers<void (*)(n_Procs_s*, int), void*>(
char const*,
unsigned int,
char const*,
void (*)(
n_Procs_s*,
int),
char const*,
void*,
char const*);
146template void CxxTest::doAssertDiffers<void (*)(snumber**, n_Procs_s*), void*>(
char const*,
unsigned int,
char const*,
void (*)(
snumber**,
n_Procs_s*),
char const*,
void*,
char const*);
147template void CxxTest::doAssertDiffers<void (*)(snumber*&, n_Procs_s*), void*>(
char const*,
unsigned int,
char const*,
void (*)(
snumber*&,
n_Procs_s*),
char const*,
void*,
char const*);
148template void CxxTest::doAssertEquals<int, int>(
char const*,
unsigned int,
char const*,
int,
char const*,
int,
char const*);
149template void CxxTest::doAssertEquals<n_coeffType, n_coeffType>(
char const*,
unsigned int,
char const*,
n_coeffType,
char const*,
n_coeffType,
char const*);
150template void CxxTest::doAssertEquals<snumber* (*)(long, n_Procs_s*), snumber* (*)(long, n_Procs_s*)>(
char const*,
unsigned int,
char const*,
snumber* (*)(
long,
n_Procs_s*),
char const*,
snumber* (*)(
long,
n_Procs_s*),
char const*);
151template void CxxTest::doAssertEquals<snumber* (*)(snumber*, snumber*, n_Procs_s*), snumber* (*)(snumber*, snumber*, n_Procs_s*)>(
char const*,
unsigned int,
char const*,
snumber* (*)(
snumber*,
snumber*,
n_Procs_s*),
char const*,
snumber* (*)(
snumber*,
snumber*,
n_Procs_s*),
char const*);
152template void CxxTest::doAssertEquals<void (*)(snumber**, n_Procs_s*), void (*)(snumber**, n_Procs_s*)>(
char const*,
unsigned int,
char const*,
void (*)(
snumber**,
n_Procs_s*),
char const*,
void (*)(
snumber**,
n_Procs_s*),
char const*);
154template bool CxxTest::differs<n_Procs_s*, void*>(
n_Procs_s*,
void*);
155template bool CxxTest::differs<snumber* (*)(long, n_Procs_s*), void*>(
snumber* (*)(
long,
n_Procs_s*),
void*);
157template bool CxxTest::differs<void (*)(n_Procs_s*, int), void*>(
void (*)(
n_Procs_s*,
int),
void*);
158template bool CxxTest::differs<void (*)(snumber**, n_Procs_s*), void*>(
void (*)(
snumber**,
n_Procs_s*),
void*);
159template bool CxxTest::differs<void (*)(snumber*&, n_Procs_s*), void*>(
void (*)(
snumber*&,
n_Procs_s*),
void*);
160template bool CxxTest::equals<int, int>(
int,
int);
162template bool CxxTest::equals<snumber* (*)(long, n_Procs_s*), snumber* (*)(long, n_Procs_s*)>(
snumber* (*)(
long,
n_Procs_s*),
snumber* (*)(
long,
n_Procs_s*));
163template bool CxxTest::equals<snumber* (*)(snumber*, snumber*, n_Procs_s*), snumber* (*)(snumber*, snumber*, n_Procs_s*)>(
snumber* (*)(
snumber*,
snumber*,
n_Procs_s*),
snumber* (*)(
snumber*,
snumber*,
n_Procs_s*));
164template bool CxxTest::equals<void (*)(snumber**, n_Procs_s*), void (*)(snumber**, n_Procs_s*)>(
void (*)(
snumber**,
n_Procs_s*),
void (*)(
snumber**,
n_Procs_s*));
165template char* CxxTest::numberToString<long>(
long,
char*,
long,
unsigned int,
unsigned int);
167template void CxxTest::doAssertDiffers<ip_sring*, void*>(
char const*,
unsigned int,
char const*,
ip_sring*,
char const*,
void*,
char const*);
168template void CxxTest::doAssertEquals<short, int>(
char const*,
unsigned int,
char const*,
short,
char const*,
int,
char const*);
170template bool CxxTest::differs<ip_sring*, void*>(
ip_sring*,
void*);
171template bool CxxTest::equals<short, int>(
short,
int);
GlobalPrintingFixture(bool redirect=false)
virtual bool tearDownWorld()
virtual bool setUpWorld()
Coefficient rings, fields and other domains suitable for Singular polynomials.
#define n_Test(a, r)
BOOLEAN n_Test(number a, const coeffs r)
@ n_R
single prescision (6,6) real numbers
@ n_Q
rational (GMP) numbers
@ n_Znm
only used if HAVE_RINGS is defined
@ n_algExt
used for all algebraic extensions, i.e., the top-most extension in an extension tower is algebraic
@ n_Zn
only used if HAVE_RINGS is defined
@ n_long_R
real floating point (GMP) numbers
@ n_Z2m
only used if HAVE_RINGS is defined
@ n_transExt
used for all transcendental extensions, i.e., the top-most extension in an extension tower is transce...
@ n_Z
only used if HAVE_RINGS is defined
@ n_long_C
complex floating point (GMP) numbers
static FORCE_INLINE int n_Size(number n, const coeffs r)
return a non-negative measure for the complexity of n; return 0 only when n represents zero; (used fo...
static FORCE_INLINE void n_Write(number n, const coeffs r, const BOOLEAN bShortOut=TRUE)
const CanonicalForm int s
void feInitResources(const char *argv0)
'SR_INT' is the type of those integers small enough to fit into 29 bits.
The main handler for Singular numbers which are suitable for Singular polynomials.
#define omFreeSize(addr, size)
void StringSetS(const char *st)
void PrintS(const char *s)
void feStringAppendResources(int warn)
ostream & operator<<(ostream &s, const spectrum &spec)