1 | #ifndef FFIELDS_H |
---|
2 | #define FFIELDS_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id$ */ |
---|
7 | /* |
---|
8 | * ABSTRACT: finite fields with a none-prime number of elements (via tables) |
---|
9 | */ |
---|
10 | #include "coeffs.h" |
---|
11 | |
---|
12 | // #define MAX_INT_VAL 0x7fffffff |
---|
13 | typedef struct |
---|
14 | { |
---|
15 | int GFChar; |
---|
16 | int GFDegree; |
---|
17 | char* GFPar_name; |
---|
18 | } GFInfo; |
---|
19 | |
---|
20 | |
---|
21 | BOOLEAN nfInitChar(coeffs r, void*); |
---|
22 | |
---|
23 | //static BOOLEAN nfCoeffsEqual(const coeffs r, n_coeffType n, void* parameter); |
---|
24 | |
---|
25 | BOOLEAN nfGreaterZero (number k, const coeffs r); |
---|
26 | number nfMult (number a, number b, const coeffs r); |
---|
27 | number nfInit (int i, const coeffs r); |
---|
28 | number nfPar (int i, const coeffs r); |
---|
29 | int nfParDeg (number n, const coeffs r); |
---|
30 | int nfInt (number &n, const coeffs r); |
---|
31 | number nfAdd (number a, number b, const coeffs r); |
---|
32 | number nfSub (number a, number b, const coeffs r); |
---|
33 | void nfPower (number a, int i, number * result, const coeffs r); |
---|
34 | BOOLEAN nfIsZero (number a, const coeffs r); |
---|
35 | BOOLEAN nfIsOne (number a, const coeffs r); |
---|
36 | BOOLEAN nfIsMOne (number a, const coeffs r); |
---|
37 | number nfDiv (number a, number b, const coeffs r); |
---|
38 | number nfNeg (number c, const coeffs r); |
---|
39 | number nfInvers (number c, const coeffs r); |
---|
40 | BOOLEAN nfGreater (number a, number b, const coeffs r); |
---|
41 | BOOLEAN nfEqual (number a, number b, const coeffs r); |
---|
42 | void nfWrite (number &a, const coeffs r); |
---|
43 | const char * nfRead (const char *s, number *a, const coeffs r); |
---|
44 | #ifdef LDEBUG |
---|
45 | BOOLEAN nfDBTest (number a, const char *f, const int l, const coeffs r); |
---|
46 | #endif |
---|
47 | //void nfSetChar (const coeffs r); |
---|
48 | |
---|
49 | nMapFunc nfSetMap (const coeffs src, const coeffs dst); |
---|
50 | char * nfName (number n, const coeffs r); |
---|
51 | void nfReadTable (const int c, const coeffs r); |
---|
52 | |
---|
53 | void nfShowMipo(); |
---|
54 | #endif |
---|
55 | |
---|