[35aab3] | 1 | #ifndef FFIELDS_H |
---|
| 2 | #define FFIELDS_H |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
[341696] | 6 | /* $Id$ */ |
---|
[35aab3] | 7 | /* |
---|
| 8 | * ABSTRACT: finite fields with a none-prime number of elements (via tables) |
---|
| 9 | */ |
---|
[2d805a] | 10 | #include <coeffs/coeffs.h> |
---|
[35aab3] | 11 | |
---|
[3510a6] | 12 | // #define MAX_INT_VAL 0x7fffffff |
---|
[dc06550] | 13 | typedef struct |
---|
| 14 | { |
---|
| 15 | int GFChar; |
---|
[a5cd69] | 16 | int GFDegree; |
---|
[dc06550] | 17 | char* GFPar_name; |
---|
| 18 | } GFInfo; |
---|
| 19 | |
---|
[35aab3] | 20 | |
---|
[1cce47] | 21 | BOOLEAN nfInitChar(coeffs r, void*); |
---|
[5e3046] | 22 | |
---|
| 23 | //static BOOLEAN nfCoeffsEqual(const coeffs r, n_coeffType n, void* parameter); |
---|
| 24 | |
---|
[7d90aa] | 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); |
---|
[35aab3] | 44 | #ifdef LDEBUG |
---|
[5e3046] | 45 | BOOLEAN nfDBTest (number a, const char *f, const int l, const coeffs r); |
---|
[35aab3] | 46 | #endif |
---|
[5e3046] | 47 | //void nfSetChar (const coeffs r); |
---|
[35aab3] | 48 | |
---|
[7d90aa] | 49 | nMapFunc nfSetMap (const coeffs src, const coeffs dst); |
---|
| 50 | char * nfName (number n, const coeffs r); |
---|
[5e3046] | 51 | void nfReadTable (const int c, const coeffs r); |
---|
| 52 | |
---|
[35aab3] | 53 | void nfShowMipo(); |
---|
| 54 | #endif |
---|
| 55 | |
---|