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