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/coeffs.h> |
---|
11 | |
---|
12 | BOOLEAN nfInitChar(coeffs r, void*); |
---|
13 | |
---|
14 | //static BOOLEAN nfCoeffsEqual(const coeffs r, n_coeffType n, void* parameter); |
---|
15 | |
---|
16 | BOOLEAN nfGreaterZero (number k, const coeffs r); |
---|
17 | number nfMult (number a, number b, const coeffs r); |
---|
18 | number nfInit (int i, const coeffs r); |
---|
19 | number nfPar (int i, const coeffs r); |
---|
20 | int nfParDeg (number n, const coeffs r); |
---|
21 | int nfInt (number &n, const coeffs r); |
---|
22 | number nfAdd (number a, number b, const coeffs r); |
---|
23 | number nfSub (number a, number b, const coeffs r); |
---|
24 | void nfPower (number a, int i, number * result, const coeffs r); |
---|
25 | BOOLEAN nfIsZero (number a, const coeffs r); |
---|
26 | BOOLEAN nfIsOne (number a, const coeffs r); |
---|
27 | BOOLEAN nfIsMOne (number a, const coeffs r); |
---|
28 | number nfDiv (number a, number b, const coeffs r); |
---|
29 | number nfNeg (number c, const coeffs r); |
---|
30 | number nfInvers (number c, const coeffs r); |
---|
31 | BOOLEAN nfGreater (number a, number b, const coeffs r); |
---|
32 | BOOLEAN nfEqual (number a, number b, const coeffs r); |
---|
33 | void nfWrite (number &a, const coeffs r); |
---|
34 | const char * nfRead (const char *s, number *a, const coeffs r); |
---|
35 | #ifdef LDEBUG |
---|
36 | BOOLEAN nfDBTest (number a, const char *f, const int l, const coeffs r); |
---|
37 | #endif |
---|
38 | //void nfSetChar (const coeffs r); |
---|
39 | |
---|
40 | nMapFunc nfSetMap (const coeffs src, const coeffs dst); |
---|
41 | char * nfName (number n, const coeffs r); |
---|
42 | void nfReadTable (const int c, const coeffs r); |
---|
43 | |
---|
44 | void nfCoeffWrite(const coeffs r); |
---|
45 | void nfShowMipo(const coeffs r); |
---|
46 | #endif |
---|
47 | |
---|
48 | BOOLEAN nfCoeffIsEqual (const coeffs r, n_coeffType n, void * parameter); |
---|