 |
My Project
debian-1:4.1.1-p2+ds-4build2
|
Go to the source code of this file.
◆ nfInitChar()
Definition at line 852 of file ffields.cc.
868 r->cfExactDiv=
nfDiv;
918 const char *
name =
p->GFPar_name;
921 r->m_nfCharP =
p->GFChar;
924 r->iNumberOfParameters = 1;
927 char ** pParameterNames = (
char **)
omAlloc0(
sizeof(
char *));
933 r->pParameterNames = (
const char**)pParameterNames;
938 r->m_nfPlus1Table=
NULL;
940 if (strlen(
name) > 1)
945 r->has_simple_Alloc=
TRUE;
946 r->has_simple_Inverse=
TRUE;
948 if(
p->GFChar > (2<<15))
951 WarnS(
"illegal characteristic");
956 const double check=
log ((
double) (
p->GFChar));
958 #define sixteenlog2 11.09035489
962 Warn(
"Sorry: illegal size: %u ^ %u",
p->GFChar,
p->GFDegree );
967 int c = (int)
pow ((
double)
p->GFChar, (double)
p->GFDegree);
971 if( r->m_nfPlus1Table ==
NULL )
977 assume (r -> m_nfCharQ > 0);
979 r->ch = r->m_nfCharP;
◆ nfShowMipo()
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
static nMapFunc nfSetMap(const coeffs src, const coeffs dst)
void StringAppendS(const char *st)
static char * nfCoeffString(const coeffs r)
static void nfCoeffWrite(const coeffs r, BOOLEAN details)
Creation data needed for finite fields.
static BOOLEAN nfIsMOne(number a, const coeffs r)
static int nfParDeg(number n, const coeffs r)
static void nfPower(number a, int i, number *result, const coeffs r)
static number nfRandom(siRandProc p, number, number, const coeffs cf)
static number nfInvers(number c, const coeffs r)
static void nfWriteLong(number a, const coeffs r)
static BOOLEAN nfIsZero(number a, const coeffs r)
static number nfDiv(number a, number b, const coeffs r)
static char * nfCoeffName(const coeffs r)
static const char * nfRead(const char *s, number *a, const coeffs r)
static BOOLEAN nfEqual(number a, number b, const coeffs r)
static number nfSub(number a, number b, const coeffs r)
static BOOLEAN nfGreater(number a, number b, const coeffs r)
static BOOLEAN nfIsOne(number a, const coeffs r)
static number nfInit(long i, const coeffs r)
static void nfReadTable(const int c, const coeffs r)
static FORCE_INLINE const char ** n_ParameterNames(const coeffs r)
Returns a (const!) pointer to (const char*) names of parameters.
static number nfAdd(number a, number b, const coeffs R)
static BOOLEAN nfGreaterZero(number k, const coeffs r)
gmp_float log(const gmp_float &a)
static number nfNeg(number c, const coeffs r)
char name(const Variable &v)
Rational pow(const Rational &a, int e)
BOOLEAN nfDBTest(number a, const char *f, const int l, const coeffs r)
@ n_rep_gf
(int), see ffields.h
static long nfInt(number &n, const coeffs r)
static number nfMult(number a, number b, const coeffs r)
static number nfParameter(int i, const coeffs)
static void nfKillChar(coeffs r)
static BOOLEAN nfCoeffIsEqual(const coeffs, n_coeffType, void *)
static void nfWriteShort(number a, const coeffs r)