number2.h
Go to the documentation of this file.
1 #ifndef NUMBER2_H
2 #define NUMBER2_H
3 
4 #include <misc/auxiliary.h>
5 
6 #ifdef SINGULAR_4_1
7 #include <omalloc/omalloc.h>
8 #include <coeffs/coeffs.h>
9 #include <kernel/structs.h>
10 struct snumber2;
11 typedef struct snumber2 * number2;
12 struct snumber2
14  number n;
15 };
16 
17 static inline number2 n2Init(long i, coeffs c)
18 { number2 N=(number2)omAlloc0(sizeof(snumber2)); if (c!=NULL) { N->cf=c; N->n=n_Init(i,c);} return N;}
19 
20 char *crString(coeffs c);
21 
22 void crPrint(coeffs cf);
23 
26 
27 BOOLEAN jjEQUAL_CR(leftv res, leftv a, leftv b); // compare cring
28 
29 // type conversion:
30 BOOLEAN jjNUMBER2CR(leftv res, leftv a, leftv b); // <any>,cring ->number2
31 BOOLEAN jjN2_CR(leftv res, leftv a); // number2 ->cring
32 BOOLEAN jjCM_CR(leftv res, leftv a); // cmatrix ->cring
33 BOOLEAN jjBIM2_CR(leftv res, leftv a); // bigint ->cring
34 BOOLEAN jjR2_CR(leftv res, leftv a); // ring ->cring
35 BOOLEAN jjN2_N(leftv res, leftv a); // number2 ->number
36 
37 // operations:
40 
41 number2 n2Copy(const number2 d);
42 void n2Delete(number2 &d);
43 char *n2String(number2 d, BOOLEAN typed);
44 void n2Print(number2 d);
45 
47 #endif
48 #endif
BOOLEAN jjEQUAL_CR(leftv res, leftv a, leftv b)
Definition: number2.cc:260
BOOLEAN jjN2_CR(leftv res, leftv a)
Definition: number2.cc:215
BOOLEAN jjCM_CR(leftv res, leftv a)
Definition: number2.cc:223
Class used for (list of) interpreter objects.
Definition: subexpr.h:83
const poly a
Definition: syzextra.cc:212
coeffs cf
Definition: number2.h:13
BOOLEAN jjR2_CR(leftv res, leftv a)
Definition: number2.cc:328
BOOLEAN jjCMATRIX_3(leftv, leftv, leftv, leftv)
Definition: number2.cc:235
static FORCE_INLINE number n_Init(long i, const coeffs r)
a number representing i in the given coeff field/ring r
Definition: coeffs.h:539
char * crString(coeffs c)
Definition: number2.cc:17
BOOLEAN jjN2_N(leftv res, leftv a)
Definition: number2.cc:244
BOOLEAN jjBIM2_CR(leftv res, leftv a)
Definition: number2.cc:319
poly res
Definition: myNF.cc:322
static number2 n2Init(long i, coeffs c)
Definition: number2.h:17
Coefficient rings, fields and other domains suitable for Singular polynomials.
const CanonicalForm CFMap CFMap & N
Definition: cfEzgcd.cc:49
BOOLEAN jjNUMBER2_OP1(leftv res, leftv a)
Definition: number2.cc:146
void crPrint(coeffs cf)
Definition: number2.cc:25
The main handler for Singular numbers which are suitable for Singular polynomials.
number n
Definition: number2.h:14
All the auxiliary stuff.
BOOLEAN jjCRING_Zp(leftv res, leftv a, leftv b)
Definition: number2.cc:35
number2 n2Copy(const number2 d)
Definition: number2.cc:270
int i
Definition: cfEzgcd.cc:123
void n2Delete(number2 &d)
Definition: number2.cc:285
BOOLEAN jjCRING_Zm(leftv res, leftv a, leftv b)
Definition: number2.cc:58
CanonicalForm cf
Definition: cfModGcd.cc:4024
#define NULL
Definition: omList.c:10
void n2Print(number2 d)
Definition: number2.cc:311
BOOLEAN jjNUMBER2_OP2(leftv res, leftv a, leftv b)
Definition: number2.cc:78
char * n2String(number2 d, BOOLEAN typed)
Definition: number2.cc:298
int BOOLEAN
Definition: auxiliary.h:131
const poly b
Definition: syzextra.cc:213
BOOLEAN jjNUMBER2CR(leftv res, leftv a, leftv b)
Definition: number2.cc:166
#define omAlloc0(size)
Definition: omAllocDecl.h:211