 |
My Project
UNKNOWN_GIT_VERSION
|
Go to the source code of this file.
|
const char * | ngfRead (const char *s, number *a, const coeffs r) |
|
static number | ngfInit (long i, const coeffs r) |
|
static long | ngfInt (number &i, const coeffs r) |
|
static BOOLEAN | ngfIsZero (number a, const coeffs r) |
|
static int | ngfSize (number n, const coeffs r) |
|
static void | ngfDelete (number *a, const coeffs r) |
|
static number | ngfCopy (number a, const coeffs r) |
|
static number | ngfNeg (number a, const coeffs r) |
|
static number | ngfInvers (number a, const coeffs r) |
|
static number | ngfAdd (number a, number b, const coeffs R) |
|
static number | ngfSub (number a, number b, const coeffs R) |
|
static number | ngfMult (number a, number b, const coeffs R) |
|
static number | ngfDiv (number a, number b, const coeffs r) |
|
static number | ngfPower (number x, int exp, const coeffs r) |
|
static void | ngfPower (number x, int exp, number *u, const coeffs r) |
|
static BOOLEAN | ngfGreaterZero (number a, const coeffs r) |
|
static BOOLEAN | ngfGreater (number a, number b, const coeffs r) |
|
static BOOLEAN | ngfEqual (number a, number b, const coeffs r) |
|
static BOOLEAN | ngfIsOne (number a, const coeffs r) |
|
static BOOLEAN | ngfIsMOne (number a, const coeffs r) |
|
static char * | ngfEatFloatNExp (char *s) |
|
static void | ngfWrite (number a, const coeffs r) |
|
static BOOLEAN | ngfCoeffIsEqual (const coeffs r, n_coeffType n, void *parameter) |
|
static void | ngfSetChar (const coeffs r) |
|
static char * | ngfCoeffString (const coeffs r) |
|
static char * | ngfCoeffName (const coeffs r) |
|
static number | ngfMapQ (number from, const coeffs src, const coeffs dst) |
|
static number | ngfMapZ (number from, const coeffs aRing, const coeffs r) |
|
static number | ngfMapR (number from, const coeffs src, const coeffs dst) |
|
static number | ngfMapP (number from, const coeffs src, const coeffs dst) |
|
static number | ngfMapC (number from, const coeffs src, const coeffs dst) |
|
static nMapFunc | ngfSetMap (const coeffs src, const coeffs dst) |
|
static void | ngfCoeffWrite (const coeffs r, BOOLEAN) |
|
BOOLEAN | ngfInitChar (coeffs n, void *parameter) |
| Initialize r. More...
|
|
◆ ngfAdd()
static number ngfAdd |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
R |
|
) |
| |
|
static |
◆ ngfCoeffIsEqual()
Definition at line 385 of file gnumpfl.cc.
391 && (
p->float_len == r->float_len)
392 && (
p->float_len2 == r->float_len2))
◆ ngfCoeffName()
Definition at line 410 of file gnumpfl.cc.
412 static char ngfCoeffName_buf[30];
413 snprintf(ngfCoeffName_buf,30,
"Float(%d,%d)",r->float_len,r->float_len2);
414 return ngfCoeffName_buf;
◆ ngfCoeffString()
Definition at line 403 of file gnumpfl.cc.
406 snprintf(
s,30,
"Float(%d,%d)",r->float_len,r->float_len2);
◆ ngfCoeffWrite()
Definition at line 503 of file gnumpfl.cc.
505 Print(
"Float(%d,%d)", r->float_len,r->float_len2);
◆ ngfCopy()
◆ ngfDelete()
◆ ngfDiv()
static number ngfDiv |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
r |
|
) |
| |
|
static |
◆ ngfEatFloatNExp()
static char* ngfEatFloatNExp |
( |
char * |
s | ) |
|
|
static |
Definition at line 279 of file gnumpfl.cc.
286 while ((*
s >=
'0' && *
s <=
'9')||(*
s ==
'.'))
s++;
291 if ( (
s != start) && ((*
s ==
'e')||(*
s==
'E')))
295 if ((*
s ==
'+') || (*
s ==
'-'))
s++;
296 while ((*
s >=
'0' && *
s <=
'9'))
s++;
◆ ngfEqual()
◆ ngfGreater()
◆ ngfGreaterZero()
◆ ngfInit()
◆ ngfInitChar()
Initialize r.
Definition at line 508 of file gnumpfl.cc.
552 if( parameter !=
NULL)
556 n->float_len =
p->float_len;
557 n->float_len2 =
p->float_len2;
◆ ngfInt()
◆ ngfInvers()
◆ ngfIsMOne()
◆ ngfIsOne()
◆ ngfIsZero()
◆ ngfMapC()
◆ ngfMapP()
◆ ngfMapQ()
◆ ngfMapR()
◆ ngfMapZ()
◆ ngfMult()
static number ngfMult |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
R |
|
) |
| |
|
static |
◆ ngfNeg()
◆ ngfPower() [1/2]
static number ngfPower |
( |
number |
x, |
|
|
int |
exp, |
|
|
const coeffs |
r |
|
) |
| |
|
static |
◆ ngfPower() [2/2]
static void ngfPower |
( |
number |
x, |
|
|
int |
exp, |
|
|
number * |
u, |
|
|
const coeffs |
r |
|
) |
| |
|
static |
◆ ngfRead()
Definition at line 308 of file gnumpfl.cc.
312 char *
s= (
char *)start;
340 divisor.setFromStr(start2+1);
345 Werror(
"wrong long real format: %s",start2);
353 if (divisor.isZero())
◆ ngfSetChar()
◆ ngfSetMap()
◆ ngfSize()
◆ ngfSub()
static number ngfSub |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
R |
|
) |
| |
|
static |
◆ ngfWrite()
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
@ n_rep_gap_rat
(number), see longrat.h
char * floatToStr(const gmp_float &r, const unsigned int oprec)
gmp_float numberFieldToFloat(number num, int cf)
const char * ngfRead(const char *s, number *a, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_Zp(const coeffs r)
void StringAppendS(const char *st)
bool isZero(const CFArray &A)
checks if entries of A are zero
static number ngfMapP(number from, const coeffs src, const coeffs dst)
static FORCE_INLINE BOOLEAN nCoeff_is_R(const coeffs r)
static number ngfSub(number a, number b, const coeffs R)
static char * ngfEatFloatNExp(char *s)
#define SHORT_REAL_LENGTH
@ n_long_C
complex floating point (GMP) numbers
static void ngfCoeffWrite(const coeffs r, BOOLEAN)
static number ngfDiv(number a, number b, const coeffs r)
static number ngfCopy(number a, const coeffs r)
@ n_rep_float
(float), see shortfl.h
number ndCopyMap(number a, const coeffs aRing, const coeffs r)
static number ngfMapQ(number from, const coeffs src, const coeffs dst)
static number ngfInvers(number a, const coeffs r)
static FORCE_INLINE int n_NumberOfParameters(const coeffs r)
Returns the number of parameters.
@ n_rep_int
(int), see modulop.h
static FORCE_INLINE BOOLEAN nCoeff_is_long_C(const coeffs r)
@ n_long_R
real floating point (GMP) numbers
static number ngfAdd(number a, number b, const coeffs R)
static void ngfDelete(number *a, const coeffs r)
void setGMPFloatDigits(size_t digits, size_t rest)
Set size of mantissa digits - the number of output digits (basis 10) the size of mantissa consists of...
const char *const nDivBy0
static void ngfWrite(number a, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_long_R(const coeffs r)
static BOOLEAN ngfEqual(number a, number b, const coeffs r)
static BOOLEAN ngfCoeffIsEqual(const coeffs r, n_coeffType n, void *parameter)
static number ngfMapZ(number from, const coeffs aRing, const coeffs r)
static number ngfMult(number a, number b, const coeffs R)
static BOOLEAN ngfIsZero(number a, const coeffs r)
static number ngfPower(number x, int exp, const coeffs r)
@ n_R
single prescision (6,6) real numbers
static FORCE_INLINE const char ** n_ParameterNames(const coeffs r)
Returns a (const!) pointer to (const char*) names of parameters.
gmp_float exp(const gmp_float &a)
long npInt(number &n, const coeffs r)
@ n_rep_gmp_float
(gmp_float), see
void Werror(const char *fmt,...)
static BOOLEAN ngfIsOne(number a, const coeffs r)
static number ngfMapR(number from, const coeffs src, const coeffs dst)
static long ngfInt(number &i, const coeffs r)
void WerrorS(const char *s)
static number ngfNeg(number a, const coeffs r)
static nMapFunc ngfSetMap(const coeffs src, const coeffs dst)
static BOOLEAN ngfGreaterZero(number a, const coeffs r)
static number ngfInit(long i, const coeffs r)
static char * ngfCoeffString(const coeffs r)
const CanonicalForm int s
static BOOLEAN ngfIsMOne(number a, const coeffs r)
static void ngfSetChar(const coeffs r)
static number ngfMapC(number from, const coeffs src, const coeffs dst)
static BOOLEAN ngfGreater(number a, number b, const coeffs r)
@ n_rep_gmp_complex
(gmp_complex), see gnumpc.h
gmp_complex numbers based on
static char * ngfCoeffName(const coeffs r)
@ n_rep_gap_gmp
(), see rinteger.h, new impl.