![]() |
My Project
|
#include "coeffs/coeffs.h"Go to the source code of this file.
Macros | |
| #define | nCopy(n) |
| #define | nDelete(n) |
| #define | nMult(n1, n2) |
| #define | nAdd(n1, n2) |
| #define | nIsZero(n) |
| #define | nEqual(n1, n2) |
| #define | nInpNeg(n) |
| #define | nSub(n1, n2) |
| #define | nGetChar() |
| #define | nInit(i) |
| #define | nIsOne(n) |
| #define | nIsMOne(n) |
| #define | nGreaterZero(n) |
| #define | nGreater(a, b) |
| #define | nWrite(n) |
| #define | nNormalize(n) |
| #define | nGcd(a, b) |
| #define | nDiv(a, b) |
| #define | nInvers(a) |
| #define | nExactDiv(a, b) |
| #define | nTest(a) |
| #define | nInpMult(a, b) |
| #define | nPower(a, b, res) |
| #define | nSize(n) |
| #define | nGetDenom(N) |
| #define | nGetNumerator(N) |
| #define | nSetMap(R) |
| #define | nPrint(a) |
| only for debug, over any initialized currRing | |
| #define | SHORT_REAL_LENGTH 6 |
Typedefs | |
| typedef BOOLEAN(* | cfInitCharProc) (coeffs, void *) |
| initialize an object of type coeff, return FALSE in case of success | |
| typedef coeffs(* | cfInitCfByNameProc) (char *s, n_coeffType n) |
| initialize an object of type coeffs by its name, return NULL otherwise | |
Functions | |
| number | ndGcd (number a, number b, const coeffs) |
| number | ndQuotRem (number a, number b, number *r, const coeffs R) |
| CanonicalForm | ndConvSingNFactoryN (number, BOOLEAN, const coeffs) |
| number | ndReadFd (const ssiInfo *f, const coeffs r) |
| number | ndReadFd_S (char **, const coeffs r) |
| BOOLEAN | n_IsZeroDivisor (number a, const coeffs r) |
| Test whether a is a zero divisor in r i.e. not coprime with char. of r very inefficient implementation: should ONLY be used for debug stuff /tests. | |
| void | ndNormalize (number &, const coeffs) |
| n_coeffType | nRegister (n_coeffType n, cfInitCharProc p) |
| void | nRegisterCfByName (cfInitCfByNameProc p, n_coeffType n) |
| coeffs | nFindCoeffByName (char *n) |
| find an existing coeff by its "CoeffName" | |
| char * | nEati (char *s, int *i, int m) |
| divide by the first (leading) number and return it, i.e. make monic | |
| char * | nEati (char *s, long *i, int m) |
| char * | nEatLong (char *s, mpz_ptr i) |
| extracts a long integer from s, returns the rest | |
Variables | |
| const char *const | nDivBy0 = "div by 0" |
| #define nAdd | ( | n1, | |
| n2 ) |
| #define nCopy | ( | n | ) |
| #define nDelete | ( | n | ) |
| #define nDiv | ( | a, | |
| b ) |
| #define nEqual | ( | n1, | |
| n2 ) |
| #define nExactDiv | ( | a, | |
| b ) |
| #define nGcd | ( | a, | |
| b ) |
| #define nGetChar | ( | ) |
| #define nGetDenom | ( | N | ) |
| #define nGetNumerator | ( | N | ) |
| #define nGreater | ( | a, | |
| b ) |
| #define nGreaterZero | ( | n | ) |
| #define nInit | ( | i | ) |
| #define nInpMult | ( | a, | |
| b ) |
| #define nInpNeg | ( | n | ) |
| #define nInvers | ( | a | ) |
| #define nIsMOne | ( | n | ) |
| #define nIsOne | ( | n | ) |
| #define nIsZero | ( | n | ) |
| #define nMult | ( | n1, | |
| n2 ) |
| #define nNormalize | ( | n | ) |
| #define nPrint | ( | a | ) |
| #define nSetMap | ( | R | ) |
| #define nSize | ( | n | ) |
| #define nSub | ( | n1, | |
| n2 ) |
| #define nTest | ( | a | ) |
| #define nWrite | ( | n | ) |
| typedef coeffs(* cfInitCfByNameProc) (char *s, n_coeffType n) |
Test whether a is a zero divisor in r i.e. not coprime with char. of r very inefficient implementation: should ONLY be used for debug stuff /tests.
Definition at line 177 of file numbers.cc.
| CanonicalForm ndConvSingNFactoryN | ( | number | , |
| BOOLEAN | , | ||
| const coeffs | ) |
Definition at line 313 of file numbers.cc.
Definition at line 193 of file numbers.cc.
Definition at line 191 of file numbers.cc.
Definition at line 356 of file numbers.cc.
Definition at line 150 of file numbers.cc.
Definition at line 156 of file numbers.cc.
| char * nEati | ( | char * | s, |
| int * | i, | ||
| int | m ) |
divide by the first (leading) number and return it, i.e. make monic
does nothing (just returns a dummy one number) helper routine: read an int from a string (mod m), return a pointer to the rest
Definition at line 672 of file numbers.cc.
| char * nEati | ( | char * | s, |
| long * | i, | ||
| int | m ) |
Definition at line 692 of file numbers.cc.
| char * nEatLong | ( | char * | s, |
| mpz_ptr | i ) |
extracts a long integer from s, returns the rest
Definition at line 713 of file numbers.cc.
| coeffs nFindCoeffByName | ( | char * | n | ) |
find an existing coeff by its "CoeffName"
Definition at line 640 of file numbers.cc.
| n_coeffType nRegister | ( | n_coeffType | n, |
| cfInitCharProc | p ) |
Definition at line 590 of file numbers.cc.
| void nRegisterCfByName | ( | cfInitCfByNameProc | p, |
| n_coeffType | n ) |
Definition at line 631 of file numbers.cc.