 |
My Project
debian-1:4.1.1-p2+ds-4build3
|
Go to the source code of this file.
◆ ZnmInfo
Definition at line 18 of file rmodulon.h.
Data Fields |
mpz_ptr |
base |
|
unsigned long |
exp |
|
◆ nrnInitChar()
Definition at line 903 of file rmodulon.cc.
907 r->modBase= (mpz_ptr)
nrnCopy((number)
info->base, r);
915 r->ch = mpz_get_ui(r->modNumber);
◆ nrnMapGMP()
Definition at line 680 of file rmodulon.cc.
684 mpz_mod(erg, (mpz_ptr)from, dst->modNumber);
◆ nrnSetMap()
Definition at line 744 of file rmodulon.cc.
764 && (mpz_cmp(src->modBase, dst->modBase) == 0)
765 && (src->modExponent == dst->modExponent))
return nrnMapGMP;
772 mpz_init_set_si(nrnMapModul, src->ch);
776 mpz_init(nrnMapModul);
777 mpz_set(nrnMapModul, src->modNumber);
786 if (mpz_divisible_p(nrnMapModul, dst->modNumber))
793 mpz_divexact(
nrnMapCoef, dst->modNumber, nrnMapModul);
794 mpz_ptr tmp = dst->modNumber;
795 dst->modNumber = nrnMapModul;
798 dst->modNumber = tmp;
803 dst->modNumber = tmp;
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
@ n_rep_gap_rat
(number), see longrat.h
static number nrnMult(number a, number b, const coeffs r)
@ n_rep_gmp
(mpz_ptr), see rmodulon,h
@ n_Zn
only used if HAVE_RINGS is defined
static BOOLEAN nrnGreaterZero(number k, const coeffs)
static mpz_ptr nrnMapCoef
static FORCE_INLINE BOOLEAN nCoeff_is_Zp(const coeffs r)
static char * nrnCoeffName(const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_Ring_2toM(const coeffs r)
static number nrnMapZp(number from, const coeffs, const coeffs dst)
static BOOLEAN nrnIsMOne(number a, const coeffs r)
static BOOLEAN nrnDivBy(number a, number b, const coeffs r)
static int nrnSize(number a, const coeffs)
static number nrnGetUnit(number k, const coeffs r)
static number nrnInvers(number c, const coeffs r)
static long nrnInt(number &n, const coeffs)
static BOOLEAN nrnIsZero(number a, const coeffs)
static number nrnMod(number a, number b, const coeffs r)
static BOOLEAN nrnGreater(number a, number b, const coeffs)
@ n_Znm
only used if HAVE_RINGS is defined
static void nrnInitExp(unsigned long m, coeffs r)
nMapFunc nrnSetMap(const coeffs src, const coeffs dst)
static number nrnQuotRem(number a, number b, number *rem, const coeffs r)
static number nrnMap2toM(number from, const coeffs, const coeffs dst)
static number nrnDiv(number a, number b, const coeffs r)
static BOOLEAN nrnIsOne(number a, const coeffs)
static number nrnSub(number a, number b, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_Ring_ModN(const coeffs r)
static coeffs nrnQuot1(number c, const coeffs r)
static number nrnGcd(number a, number b, const coeffs r)
static const char * nrnRead(const char *s, number *a, const coeffs r)
static void nrnKillChar(coeffs r)
static BOOLEAN nrnIsUnit(number a, const coeffs r)
static FORCE_INLINE BOOLEAN nCoeff_is_Ring_PtoM(const coeffs r)
static number nrnMapModN(number from, const coeffs, const coeffs dst)
static number nrnLcm(number a, number b, const coeffs r)
static int nrnDivComp(number a, number b, const coeffs r)
static number nrnAnn(number k, const coeffs r)
static number nrnCopy(number a, const coeffs)
static number nrnMapZ(number from, const coeffs src, const coeffs dst)
static number nrnMapQ(number from, const coeffs src, const coeffs dst)
static char * nrnCoeffString(const coeffs r)
number nrnMapGMP(number from, const coeffs, const coeffs dst)
static number nrnXExtGcd(number a, number b, number *s, number *t, number *u, number *v, const coeffs r)
static number nrnInit(long i, const coeffs r)
static number nrnExtGcd(number a, number b, number *s, number *t, const coeffs r)
static void nrnCoeffWrite(const coeffs r, BOOLEAN)
static number nrnNeg(number c, const coeffs r)
static BOOLEAN nrnCoeffsEqual(const coeffs r, n_coeffType n, void *parameter)
static FORCE_INLINE BOOLEAN nCoeff_is_Ring_Z(const coeffs r)
const ExtensionInfo & info
< [in] sqrfree poly
static number nrnAdd(number a, number b, const coeffs r)
static void nrnPower(number a, int i, number *result, const coeffs r)
BOOLEAN nrnDBTest(number a, const char *f, const int l, const coeffs r)
static BOOLEAN nrnEqual(number a, number b, const coeffs)
static void nrnDelete(number *a, const coeffs)
@ n_rep_gap_gmp
(), see rinteger.h, new impl.