 |
My Project
debian-1:4.1.2-p1+ds-2
|
Go to the source code of this file.
◆ nfInitChar()
Definition at line 833 of file ffields.cc.
849 r->cfExactDiv=
nfDiv;
899 const char *
name =
p->GFPar_name;
902 r->m_nfCharP =
p->GFChar;
905 r->iNumberOfParameters = 1;
908 char ** pParameterNames = (
char **)
omAlloc(
sizeof(
char *));
913 r->pParameterNames = (
const char**)pParameterNames;
915 r->m_nfPlus1Table=
NULL;
917 if (strlen(
name) > 1)
922 r->has_simple_Alloc=
TRUE;
923 r->has_simple_Inverse=
TRUE;
925 if(
p->GFChar > (2<<15))
928 WarnS(
"illegal characteristic");
933 const double check=
log ((
double) (
p->GFChar));
935 #define sixteenlog2 11.09035489
939 Warn(
"Sorry: illegal size: %u ^ %u",
p->GFChar,
p->GFDegree );
944 int c = (int)
pow ((
double)
p->GFChar, (double)
p->GFDegree);
948 if( r->m_nfPlus1Table ==
NULL )
954 assume (r -> m_nfCharQ > 0);
956 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_VAR int nfMinPoly[16]
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)
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)