![]() |
#include <misc/auxiliary.h>#include <omalloc/omalloc.h>#include <factory/factory.h>#include <misc/sirandom.h>#include <reporter/reporter.h>#include "rmodulon.h"#include "longrat.h"#include "shortfl.h"#include "modulop.h"#include <string.h>#include <float.h>#include <coeffs/coeffs.h>#include <coeffs/numbers.h>#include <coeffs/mpr_complex.h>Go to the source code of this file.
Macros | |
| #define | LINLINE |
| #define | nlTest(a, r) nlDBTest(a,__FILE__,__LINE__, r) |
| #define | MAX_NUM_SIZE 28 |
| #define | POW_2_28 (1L<<28) |
| #define | POW_2_28_32 (1L<<28) |
| #define | LONG int |
| #define | LONGRAT_CC |
| #define | BYTES_PER_MP_LIMB sizeof(mp_limb_t) |
| #define | MP_SMALL 1 |
| #define | mpz_isNeg(A) ((A)->_mp_size<0) |
| #define | mpz_limb_size(A) ((A)->_mp_size) |
| #define | mpz_limb_d(A) ((A)->_mp_d) |
| #define | MPZ_DIV(A, B, C) mpz_tdiv_q((A),(B),(C)) |
| #define | MPZ_EXACTDIV(A, B, C) mpz_divexact((A),(B),(C)) |
| #define | SSI_BASE 16 |
Functions | |
| LINLINE BOOLEAN | nlEqual (number a, number b, const coeffs r) |
| LINLINE number | nlInit (long i, const coeffs r) |
| LINLINE BOOLEAN | nlIsOne (number a, const coeffs r) |
| LINLINE BOOLEAN | nlIsZero (number za, const coeffs r) |
| LINLINE number | nlCopy (number a, const coeffs r) |
| LINLINE number | nl_Copy (number a, const coeffs r) |
| LINLINE void | nlDelete (number *a, const coeffs r) |
| LINLINE number | nlNeg (number za, const coeffs r) |
| LINLINE number | nlAdd (number la, number li, const coeffs r) |
| LINLINE number | nlSub (number la, number li, const coeffs r) |
| LINLINE number | nlMult (number a, number b, const coeffs r) |
| LINLINE void | nlInpAdd (number &a, number b, const coeffs r) |
| LINLINE void | nlInpMult (number &a, number b, const coeffs r) |
| number | nlRInit (long i) |
| void | nlNormalize (number &x, const coeffs r) |
| number | nlGcd (number a, number b, const coeffs r) |
| number | nlExtGcd (number a, number b, number *s, number *t, const coeffs) |
| number | nlNormalizeHelper (number a, number b, const coeffs r) |
| BOOLEAN | nlGreater (number a, number b, const coeffs r) |
| BOOLEAN | nlIsMOne (number a, const coeffs r) |
| long | nlInt (number &n, const coeffs r) |
| number | nlBigInt (number &n) |
| number | nlMapGMP (number from, const coeffs src, const coeffs dst) |
| BOOLEAN | nlGreaterZero (number za, const coeffs r) |
| number | nlInvers (number a, const coeffs r) |
| number | nlDiv (number a, number b, const coeffs r) |
| number | nlExactDiv (number a, number b, const coeffs r) |
| number | nlIntDiv (number a, number b, const coeffs r) |
| number | nlIntMod (number a, number b, const coeffs r) |
| void | nlPower (number x, int exp, number *lu, const coeffs r) |
| const char * | nlRead (const char *s, number *a, const coeffs r) |
| void | nlWrite (number &a, const coeffs r) |
| number | nlGetDenom (number &n, const coeffs r) |
| number | nlGetNumerator (number &n, const coeffs r) |
| void | nlCoeffWrite (const coeffs r, BOOLEAN details) |
| number | nlChineseRemainder (number *x, number *q, int rl, const coeffs C) |
| number | nlFarey (number nN, number nP, const coeffs CF) |
| BOOLEAN | nlDBTest (number a, const char *f, const int l) |
| nMapFunc | nlSetMap (const coeffs src, const coeffs dst) |
| void | nlInpIntDiv (number &a, number b, const coeffs r) |
| BOOLEAN | nlDBTest (number a, char *f, int l, const coeffs r) |
| static number | nlShort3 (number x) |
| void | _nlDelete_NoImm (number *a) |
| number | nlShort3_noinline (number x) |
| void | mpz_mul_si (mpz_ptr r, mpz_srcptr s, long int si) |
| static number | nlMapP (number from, const coeffs src, const coeffs dst) |
| static number | nlMapLongR (number from, const coeffs src, const coeffs dst) |
| static number | nlMapR (number from, const coeffs src, const coeffs dst) |
| number | nlMapZ (number from, const coeffs src, const coeffs dst) |
| number | nlMapMachineInt (number from, const coeffs, const coeffs) |
| BOOLEAN | nlDBTest (number a, const char *f, const int l, const coeffs) |
| static CanonicalForm | nlConvSingNFactoryN (number n, const BOOLEAN setChar, const coeffs) |
| static number | nlConvFactoryNSingN (const CanonicalForm f, const coeffs r) |
| int | nlSize (number a, const coeffs) |
| number | nlBigInt (number &i, const coeffs r) |
| BOOLEAN | nlDivBy (number a, number b, const coeffs) |
| int | nlDivComp (number a, number b, const coeffs r) |
| number | nlGetUnit (number n, const coeffs r) |
| coeffs | nlQuot1 (number c, const coeffs r) |
| BOOLEAN | nlIsUnit (number a, const coeffs) |
| number | nlShort1 (number x) |
| number | nlModP (number q, const coeffs Q, const coeffs Zp) |
| void | nlGMP (number &i, number n, const coeffs r) |
| BOOLEAN | _nlEqual_aNoImm_OR_bNoImm (number a, number b) |
| number | _nlCopy_NoImm (number a) |
| number | _nlNeg_NoImm (number a) |
| number | _nlAdd_aNoImm_OR_bNoImm (number a, number b) |
| void | _nlInpAdd_aNoImm_OR_bNoImm (number &a, number b) |
| number | _nlSub_aNoImm_OR_bNoImm (number a, number b) |
| number | _nlMult_aImm_bImm_rNoImm (number a, number b) |
| number | _nlMult_aNoImm_OR_bNoImm (number a, number b) |
| number | nlCopyMap (number a, const coeffs src, const coeffs dst) |
| number | nlInit2 (int i, int j, const coeffs r) |
| create a rational i/j (implicitly) over Q NOTE: make sure to use correct Q in debug mode More... | |
| number | nlInit2gmp (mpz_t i, mpz_t j, const coeffs r) |
| create a rational i/j (implicitly) over Q NOTE: make sure to use correct Q in debug mode More... | |
| static void | nlMPZ (mpz_t m, number &n, const coeffs r) |
| static number | nlInitMPZ (mpz_t m, const coeffs) |
| void | nlInpGcd (number &a, number b, const coeffs r) |
| number | nlChineseRemainderSym (number *x, number *q, int rl, BOOLEAN sym, const coeffs CF) |
| static void | nlClearContent (ICoeffsEnumerator &numberCollectionEnumerator, number &c, const coeffs cf) |
| static void | nlClearDenominators (ICoeffsEnumerator &numberCollectionEnumerator, number &c, const coeffs cf) |
| char * | nlCoeffName (const coeffs r) |
| static char * | nlCoeffString (const coeffs r) |
| static void | nlWriteFd (number n, FILE *f, const coeffs) |
| static number | nlReadFd (s_buff f, const coeffs) |
| BOOLEAN | nlCoeffIsEqual (const coeffs r, n_coeffType n, void *p) |
| static number | nlLcm (number a, number b, const coeffs r) |
| static number | nlRandom (siRandProc p, number v2, number, const coeffs cf) |
| BOOLEAN | nlInitChar (coeffs r, void *p) |
| #define BYTES_PER_MP_LIMB sizeof(mp_limb_t) |
Definition at line 147 of file longrat.cc.
| #define LINLINE |
Definition at line 25 of file longrat.cc.
| #define LONG int |
Definition at line 107 of file longrat.cc.
| #define LONGRAT_CC |
Definition at line 134 of file longrat.cc.
| #define MAX_NUM_SIZE 28 |
Definition at line 104 of file longrat.cc.
| #define MP_SMALL 1 |
Definition at line 155 of file longrat.cc.
Definition at line 161 of file longrat.cc.
Definition at line 157 of file longrat.cc.
Definition at line 159 of file longrat.cc.
Definition at line 158 of file longrat.cc.
| #define POW_2_28 (1L<<28) |
Definition at line 105 of file longrat.cc.
| #define POW_2_28_32 (1L<<28) |
Definition at line 106 of file longrat.cc.
| #define SSI_BASE 16 |
Definition at line 2975 of file longrat.cc.
| number _nlAdd_aNoImm_OR_bNoImm | ( | number | a, |
| number | b | ||
| ) |
Definition at line 1576 of file longrat.cc.
| number _nlCopy_NoImm | ( | number | a | ) |
Definition at line 1525 of file longrat.cc.
| void _nlDelete_NoImm | ( | number * | a | ) |
Definition at line 1546 of file longrat.cc.
| BOOLEAN _nlEqual_aNoImm_OR_bNoImm | ( | number | a, |
| number | b | ||
| ) |
Definition at line 1478 of file longrat.cc.
| void _nlInpAdd_aNoImm_OR_bNoImm | ( | number & | a, |
| number | b | ||
| ) |
Definition at line 1742 of file longrat.cc.
| number _nlMult_aImm_bImm_rNoImm | ( | number | a, |
| number | b | ||
| ) |
Definition at line 2105 of file longrat.cc.
| number _nlMult_aNoImm_OR_bNoImm | ( | number | a, |
| number | b | ||
| ) |
Definition at line 2118 of file longrat.cc.
| number _nlNeg_NoImm | ( | number | a | ) |
Definition at line 1564 of file longrat.cc.
| number _nlSub_aNoImm_OR_bNoImm | ( | number | a, |
| number | b | ||
| ) |
Definition at line 1881 of file longrat.cc.
| void mpz_mul_si | ( | mpz_ptr | r, |
| mpz_srcptr | s, | ||
| long int | si | ||
| ) |
Definition at line 179 of file longrat.cc.
Definition at line 2439 of file longrat.cc.
| number nlBigInt | ( | number & | n | ) |
Definition at line 636 of file longrat.cc.
Definition at line 2772 of file longrat.cc.
Definition at line 2741 of file longrat.cc.
|
static |
Definition at line 2777 of file longrat.cc.
|
static |
Definition at line 2868 of file longrat.cc.
| BOOLEAN nlCoeffIsEqual | ( | const coeffs | r, |
| n_coeffType | n, | ||
| void * | p | ||
| ) |
Definition at line 3085 of file longrat.cc.
Definition at line 2962 of file longrat.cc.
Definition at line 2968 of file longrat.cc.
Definition at line 2733 of file longrat.cc.
|
static |
Definition at line 378 of file longrat.cc.
|
static |
Definition at line 340 of file longrat.cc.
Definition at line 2391 of file longrat.cc.
Definition at line 2222 of file longrat.cc.
Definition at line 248 of file longrat.cc.
Definition at line 2404 of file longrat.cc.
Definition at line 965 of file longrat.cc.
Definition at line 909 of file longrat.cc.
Definition at line 923 of file longrat.cc.
Definition at line 2335 of file longrat.cc.
Definition at line 733 of file longrat.cc.
Definition at line 2699 of file longrat.cc.
Definition at line 2630 of file longrat.cc.
Definition at line 1165 of file longrat.cc.
Definition at line 1418 of file longrat.cc.
Definition at line 1447 of file longrat.cc.
Definition at line 934 of file longrat.cc.
Definition at line 1397 of file longrat.cc.
Definition at line 1138 of file longrat.cc.
Definition at line 1128 of file longrat.cc.
Definition at line 2344 of file longrat.cc.
create a rational i/j (implicitly) over Q NOTE: make sure to use correct Q in debug mode
Definition at line 2282 of file longrat.cc.
create a rational i/j (implicitly) over Q NOTE: make sure to use correct Q in debug mode
Definition at line 2295 of file longrat.cc.
Definition at line 3121 of file longrat.cc.
Definition at line 2566 of file longrat.cc.
Definition at line 2457 of file longrat.cc.
Definition at line 2576 of file longrat.cc.
Definition at line 2591 of file longrat.cc.
Definition at line 2523 of file longrat.cc.
Definition at line 604 of file longrat.cc.
Definition at line 784 of file longrat.cc.
Definition at line 850 of file longrat.cc.
Definition at line 654 of file longrat.cc.
Definition at line 1153 of file longrat.cc.
Definition at line 2362 of file longrat.cc.
Definition at line 956 of file longrat.cc.
Definition at line 2371 of file longrat.cc.
Definition at line 3097 of file longrat.cc.
Definition at line 208 of file longrat.cc.
Definition at line 433 of file longrat.cc.
Definition at line 233 of file longrat.cc.
Definition at line 191 of file longrat.cc.
Definition at line 403 of file longrat.cc.
Definition at line 221 of file longrat.cc.
Definition at line 1355 of file longrat.cc.
Definition at line 2557 of file longrat.cc.
Definition at line 2475 of file longrat.cc.
Definition at line 2420 of file longrat.cc.
Definition at line 1264 of file longrat.cc.
Definition at line 1308 of file longrat.cc.
Definition at line 1075 of file longrat.cc.
Definition at line 942 of file longrat.cc.
|
static |
Definition at line 3107 of file longrat.cc.
Definition at line 57 of file longrat0.cc.
Definition at line 3023 of file longrat.cc.
| number nlRInit | ( | long | i | ) |
Definition at line 2268 of file longrat.cc.
Definition at line 2231 of file longrat.cc.
| number nlShort1 | ( | number | x | ) |
Definition at line 1243 of file longrat.cc.
|
inlinestatic |
Definition at line 110 of file longrat.cc.
| number nlShort3_noinline | ( | number | x | ) |
Definition at line 172 of file longrat.cc.
Definition at line 575 of file longrat.cc.
Definition at line 2505 of file longrat.cc.
Definition at line 117 of file longrat0.cc.
Definition at line 2977 of file longrat.cc.