My Project  debian-1:4.1.2-p1+ds-2
rintegers.cc
Go to the documentation of this file.
1 /****************************************
2 * Computer Algebra System SINGULAR *
3 ****************************************/
4 /*
5 * ABSTRACT: numbers (integers)
6 */
7 
8 #include "misc/auxiliary.h"
9 
10 #ifdef HAVE_RINGS
11 #include "factory/factory.h"
12 
13 #include "misc/mylimits.h"
14 #include "reporter/reporter.h"
15 
16 #include "coeffs/rintegers.h"
17 #include "coeffs/mpr_complex.h"
18 #include "coeffs/rmodulon.h"
19 #include "coeffs/longrat.h"
20 #include "coeffs/numbers.h"
21 
22 #include <string.h>
23 
24 VAR omBin gmp_nrz_bin = omGetSpecBin(sizeof(mpz_t));
25 
26 static void nrzCoeffWrite (const coeffs, BOOLEAN /*details*/)
27 {
28  PrintS("ZZ");
29 }
30 
31 static char* nrzCoeffName(const coeffs)
32 {
33  return (char*)"ZZ";
34 }
35 
36 static char* nrzCoeffString(const coeffs cf)
37 {
38  return omStrDup(nrzCoeffName(cf));
39 }
40 
41 #if SI_INTEGER_VARIANT == 2
42 #include "rintegers2.cc"
43 #elif SI_INTEGER_VARIANT == 3
44 #include "rintegers3.cc"
45 #elif SI_INTEGER_VARIANT == 1
46 BOOLEAN nrzInitChar(coeffs r, void *)
47 {
48  return nlInitChar(r,(void*)1);
49 }
50 #else
51 #error set SI_INTEGER_VARIANT
52 #endif
53 #endif
All the auxiliary stuff.
int BOOLEAN
Definition: auxiliary.h:87
CanonicalForm cf
Definition: cfModGcd.cc:4024
#define VAR
Definition: globaldefs.h:5
BOOLEAN nlInitChar(coeffs r, void *p)
Definition: longrat.cc:3325
The main handler for Singular numbers which are suitable for Singular polynomials.
#define omStrDup(s)
Definition: omAllocDecl.h:263
#define omGetSpecBin(size)
Definition: omBin.h:11
omBin_t * omBin
Definition: omStructs.h:12
void PrintS(const char *s)
Definition: reporter.cc:284
static void nrzCoeffWrite(const coeffs, BOOLEAN)
Definition: rintegers.cc:26
static char * nrzCoeffName(const coeffs)
Definition: rintegers.cc:31
VAR omBin gmp_nrz_bin
Definition: rintegers.cc:24
static char * nrzCoeffString(const coeffs cf)
Definition: rintegers.cc:36
BOOLEAN nrzInitChar(coeffs r, void *parameter)