[35aab3] | 1 | #ifndef SHORTFL_H |
---|
| 2 | #define SHORTFL_H |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
| 6 | /* |
---|
| 7 | * ABSTRACT |
---|
| 8 | */ |
---|
[2d805a] | 9 | #include <coeffs/coeffs.h> |
---|
[35aab3] | 10 | |
---|
[51d835] | 11 | |
---|
| 12 | /// Get a mapping function from src into the domain of this type: n_R |
---|
| 13 | nMapFunc nrSetMap(const coeffs src, const coeffs dst); |
---|
| 14 | |
---|
| 15 | /// Initialize r |
---|
[1cce47] | 16 | BOOLEAN nrInitChar(coeffs r, void*); |
---|
[51d835] | 17 | |
---|
[2b957a] | 18 | // Private interface should be hidden!!! |
---|
[51d835] | 19 | |
---|
[7d90aa] | 20 | BOOLEAN nrGreaterZero (number k, const coeffs r); |
---|
| 21 | number nrMult (number a, number b, const coeffs r); |
---|
[2f3764] | 22 | number nrInit (long i, const coeffs r); |
---|
[7d90aa] | 23 | int nrInt (number &n, const coeffs r); |
---|
| 24 | number nrAdd (number a, number b, const coeffs r); |
---|
| 25 | number nrSub (number a, number b, const coeffs r); |
---|
| 26 | void nrPower (number a, int i, number * result, const coeffs r); |
---|
| 27 | BOOLEAN nrIsZero (number a, const coeffs r); |
---|
| 28 | BOOLEAN nrIsOne (number a, const coeffs r); |
---|
| 29 | BOOLEAN nrIsMOne (number a, const coeffs r); |
---|
| 30 | number nrDiv (number a, number b, const coeffs r); |
---|
| 31 | number nrNeg (number c, const coeffs r); |
---|
| 32 | number nrInvers (number c, const coeffs r); |
---|
| 33 | BOOLEAN nrGreater (number a, number b, const coeffs r); |
---|
| 34 | BOOLEAN nrEqual (number a, number b, const coeffs r); |
---|
| 35 | void nrWrite (number &a, const coeffs r); |
---|
| 36 | const char * nrRead (const char *s, number *a, const coeffs r); |
---|
[35aab3] | 37 | #ifdef LDEBUG |
---|
[3aae0e] | 38 | BOOLEAN nrDBTest(number a, const coeffs r, const char *f, const int l); |
---|
[35aab3] | 39 | #endif |
---|
[51d835] | 40 | |
---|
[35aab3] | 41 | |
---|
| 42 | |
---|
[3aae0e] | 43 | // Where are the following used? |
---|
| 44 | // int nrGetChar(); |
---|
[7089a9] | 45 | number nrMapQ(number from, const coeffs r, const coeffs aRing); |
---|
[3aae0e] | 46 | |
---|
| 47 | |
---|
| 48 | /// Converts a n_R number into a float. Needed by Maps |
---|
[51d835] | 49 | float nrFloat(number n); |
---|
| 50 | |
---|
[3aae0e] | 51 | |
---|
[35aab3] | 52 | #endif |
---|
| 53 | |
---|