 |
My Project
debian-1:4.1.1-p2+ds-4build1
|
Go to the source code of this file.
|
BOOLEAN | ngcDBTest (number a, const char *f, const int l, const coeffs r) |
|
static number | ngcParameter (int i, const coeffs r) |
|
static number | ngcInit (long i, const coeffs r) |
|
static long | ngcInt (number &i, const coeffs r) |
|
static BOOLEAN | ngcIsZero (number a, const coeffs r) |
|
static int | ngcSize (number n, const coeffs R) |
|
static void | ngcDelete (number *a, const coeffs r) |
|
static number | ngcCopy (number a, const coeffs r) |
|
static number | ngcNeg (number a, const coeffs R) |
|
static number | ngcInvers (number a, const coeffs R) |
|
static number | ngcAdd (number a, number b, const coeffs R) |
|
static number | ngcSub (number a, number b, const coeffs R) |
|
static number | ngcMult (number a, number b, const coeffs R) |
|
static number | ngcDiv (number a, number b, const coeffs r) |
|
static void | ngcPower (number x, int exp, number *u, const coeffs r) |
|
static number | ngcRePart (number a, const coeffs r) |
|
static number | ngcImPart (number a, const coeffs r) |
|
static BOOLEAN | ngcGreaterZero (number a, const coeffs r) |
|
static BOOLEAN | ngcGreater (number a, number b, const coeffs r) |
|
static BOOLEAN | ngcEqual (number a, number b, const coeffs r) |
|
static BOOLEAN | ngcIsOne (number a, const coeffs r) |
|
static BOOLEAN | ngcIsMOne (number a, const coeffs r) |
|
static const char * | ngcRead (const char *s, number *a, const coeffs r) |
|
static void | ngcWrite (number a, const coeffs r) |
|
static BOOLEAN | ngcCoeffIsEqual (const coeffs r, n_coeffType n, void *parameter) |
|
static void | ngcKillChar (coeffs r) |
|
static char * | ngcCoeffString (const coeffs r) |
|
static char * | ngcCoeffName (const coeffs r) |
|
static void | ngcCoeffWrite (const coeffs r, BOOLEAN) |
|
static number | ngcMapQ (number from, const coeffs aRing, const coeffs r) |
|
static number | ngcMapZ (number from, const coeffs aRing, const coeffs r) |
|
static number | ngcMapLongR (number from, const coeffs aRing, const coeffs r) |
|
static number | ngcMapR (number from, const coeffs aRing, const coeffs r) |
|
static number | ngcMapP (number from, const coeffs aRing, const coeffs r) |
|
static number | ngcCopyMap (number from, const coeffs aRing, const coeffs r) |
|
static nMapFunc | ngcSetMap (const coeffs src, const coeffs dst) |
|
BOOLEAN | ngcInitChar (coeffs n, void *parameter) |
| Initialize r (n_long_C) More...
|
|
void | ngcSetChar (const coeffs r) |
|
◆ ngcAdd()
static number ngcAdd |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
R |
|
) |
| |
|
static |
◆ ngcCoeffIsEqual()
Definition at line 378 of file gnumpc.cc.
391 (
p->float_len == r->float_len) &&
392 (
p->float_len2 == r->float_len2)
◆ ngcCoeffName()
Definition at line 421 of file gnumpc.cc.
423 static char ngcCoeffName_buf[40];
425 if (ngcCoeffName_buf!=
NULL)
omFree(ngcCoeffName_buf);
426 sprintf(ngcCoeffName_buf,
"complex,%d,%d,%s",r->float_len,r->float_len2,
p);
427 return ngcCoeffName_buf;
◆ ngcCoeffString()
Definition at line 413 of file gnumpc.cc.
417 sprintf(
s,
"complex,%d,%d,%s",r->float_len,r->float_len2,
p);
◆ ngcCoeffWrite()
◆ ngcCopy()
◆ ngcCopyMap()
◆ ngcDBTest()
◆ ngcDelete()
◆ ngcDiv()
static number ngcDiv |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
r |
|
) |
| |
|
static |
◆ ngcEqual()
Definition at line 295 of file gnumpc.cc.
301 return (*aa) == (*bb);
◆ ngcGreater()
Definition at line 283 of file gnumpc.cc.
289 return (*aa) > (*bb);
◆ ngcGreaterZero()
◆ ngcImPart()
◆ ngcInit()
◆ ngcInitChar()
Initialize r (n_long_C)
Definition at line 555 of file gnumpc.cc.
662 n->iNumberOfParameters = 1;
665 char ** pParameterNames = (
char **)
omAlloc0(
sizeof(
char *));
667 if( parameter !=
NULL)
670 pParameterNames[0] =
omStrDup(
p->par_name);
673 n->float_len =
p->float_len;
674 n->float_len2 =
p->float_len2;
686 n->pParameterNames = (
const char**)pParameterNames;
◆ ngcInt()
◆ ngcInvers()
◆ ngcIsMOne()
◆ ngcIsOne()
◆ ngcIsZero()
◆ ngcKillChar()
static void ngcKillChar |
( |
coeffs |
r | ) |
|
|
static |
Definition at line 400 of file gnumpc.cc.
406 for(
int i = 1;
i <= P;
i++ )
◆ ngcMapLongR()
◆ ngcMapP()
◆ ngcMapQ()
◆ ngcMapR()
◆ ngcMapZ()
◆ ngcMult()
static number ngcMult |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
R |
|
) |
| |
|
static |
◆ ngcNeg()
◆ ngcParameter()
◆ ngcPower()
static void ngcPower |
( |
number |
x, |
|
|
int |
exp, |
|
|
number * |
u, |
|
|
const coeffs |
r |
|
) |
| |
|
static |
◆ ngcRead()
Definition at line 329 of file gnumpc.cc.
334 const int N = strlen(complex_parameter);
336 if ((*
s >=
'0') && (*
s <=
'9'))
344 else if (strncmp(
s, complex_parameter,
N)==0)
◆ ngcRePart()
◆ ngcSetChar()
◆ ngcSetMap()
◆ ngcSize()
◆ ngcSub()
static number ngcSub |
( |
number |
a, |
|
|
number |
b, |
|
|
const coeffs |
R |
|
) |
| |
|
static |
◆ ngcWrite()
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
static number ngcMapQ(number from, const coeffs aRing, const coeffs r)
static number ngcInvers(number a, const coeffs R)
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)
static void ngcKillChar(coeffs r)
bool isZero(const CFArray &A)
checks if entries of A are zero
static void ngcCoeffWrite(const coeffs r, BOOLEAN)
static FORCE_INLINE BOOLEAN nCoeff_is_R(const coeffs r)
static void ngcDelete(number *a, const coeffs r)
static number ngcCopy(number a, const coeffs r)
static long ngcInt(number &i, const coeffs r)
static BOOLEAN ngcGreater(number a, number b, const coeffs r)
#define SHORT_REAL_LENGTH
complex floating point (GMP) numbers
static BOOLEAN ngcCoeffIsEqual(const coeffs r, n_coeffType n, void *parameter)
static number ngcNeg(number a, const coeffs R)
static char * ngcCoeffString(const coeffs r)
SI_FLOAT nrFloat(number n)
Converts a n_R number into a float. Needed by Maps.
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
const CanonicalForm CFMap CFMap & N
static CanonicalForm oneNorm(const CanonicalForm &F)
static FORCE_INLINE int n_NumberOfParameters(const coeffs r)
Returns the number of parameters.
static number ngcSub(number a, number b, const coeffs R)
static BOOLEAN ngcIsZero(number a, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_long_C(const coeffs r)
static number ngcMult(number a, number b, const coeffs R)
static number ngcMapZ(number from, const coeffs aRing, const coeffs r)
static number ngcMapR(number from, const coeffs aRing, const coeffs r)
real floating point (GMP) numbers
static void ngcPower(number x, int exp, number *u, const coeffs r)
Rational abs(const Rational &a)
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
#define omFreeSize(addr, size)
static number ngcDiv(number a, number b, const coeffs r)
static number ngcRePart(number a, const coeffs r)
static number ngcParameter(int i, const coeffs r)
static BOOLEAN ngcEqual(number a, number b, const coeffs r)
static number ngcMapP(number from, const coeffs aRing, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_long_R(const coeffs r)
void ngcSetChar(const coeffs r)
static char * ngcCoeffName(const coeffs r)
static BOOLEAN ngcIsOne(number a, const coeffs r)
char * complexToStr(gmp_complex &c, const unsigned int oprec, const coeffs src)
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)
static BOOLEAN ngcGreaterZero(number a, const coeffs r)
static number ngcAdd(number a, number b, const coeffs R)
static number ngcImPart(number a, const coeffs r)
static nMapFunc ngcSetMap(const coeffs src, const coeffs dst)
static number ngcCopyMap(number from, const coeffs aRing, const coeffs r)
void WerrorS(const char *s)
static number ngcInit(long i, const coeffs r)
const CanonicalForm int s
static const char * ngcRead(const char *s, number *a, const coeffs r)
static void ngcWrite(number a, const coeffs r)
static BOOLEAN ngcIsMOne(number a, const coeffs r)
(gmp_complex), see gnumpc.h
static number ngcMapLongR(number from, const coeffs aRing, const coeffs r)
gmp_complex numbers based on
(), see rinteger.h, new impl.