TODO: there might be extreme cases where this doesn't hold...
62 ring sourcering = dst_r;
69 WerrorS(
"Sorry, not yet implemented for noncomm. rings");
80 int imagepvariables =
rVar(theImageRing);
81 int N =
rVar(dst_r)+imagepvariables;
86 WerrorS(
"error in rSumInternal");
92 if (theImageRing->cf != dst_r->cf)
95 WerrorS(
"Coefficient fields/rings must be equal");
106 if (theImageRing->qideal!=
NULL) j+=
IDELEMS(theImageRing->qideal);
107 temp1 =
idInit(sourcering->N+j,1);
108 for (i=0;i<sourcering->N;i++)
111 p_SetExp(q,i+1+imagepvariables,1,tmpR);
127 for (i=sourcering->N;i<sourcering->N+j0;i++)
130 pChangeSizeOfPoly(theImageRing, id->m[i-sourcering->N], 1, imagepvariables, tmpR),
133 for (i=sourcering->N+j0;i<sourcering->N+j;i++)
136 pChangeSizeOfPoly(theImageRing, theImageRing->qideal->m[i-sourcering->N-j0], 1, imagepvariables, tmpR),
static poly p_SortMerge(poly p, const ring r, BOOLEAN revert=FALSE)
int rSumInternal(ring r1, ring r2, ring &sum, BOOLEAN vartest, BOOLEAN dp_dp)
returns -1 for not compatible, 1 for compatible (and sum) dp_dp:0: block ordering, 1: dp,dp, 2: aa(...),dp vartest: check for name conflicts
number ndCopyMap(number a, const coeffs aRing, const coeffs r)
static short rVar(const ring r)
#define rVar(r) (r->N)
void id_Delete(ideal *h, ring r)
deletes an ideal/module/matrix
ideal kStd(ideal F, ideal Q, tHomog h, intvec **w, intvec *hilb, int syzComp, int newIdeal, intvec *vw, s_poly_proc_t sp)
void WerrorS(const char *s)
const CanonicalForm CFMap CFMap & N
static BOOLEAN rIsPluralRing(const ring r)
we must always have this test!
static poly pChangeSizeOfPoly(ring p_ring, poly p, int minvar, int maxvar, const ring dst_r)
int p_LowVar(poly p, const ring r)
the minimal index of used variables - 1
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
void idSkipZeroes(ideal ide)
gives an ideal/module the minimal possible size
void rChangeCurrRing(ring r)
static void p_Delete(poly *p, const ring r)
ideal idInit(int idsize, int rank)
initialise an ideal / module
static unsigned long p_SetExp(poly p, const unsigned long e, const unsigned long iBitmask, const int VarOffset)
set a single variable exponent : VarOffset encodes the position in p->exp
void pEnlargeSet(poly **p, int l, int increment)
void rDelete(ring r)
unconditionally deletes fields in r
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static void p_Setm(poly p, const ring r)
static nc_type & ncRingType(nc_struct *p)
static poly p_Add_q(poly p, poly q, const ring r)
poly p_ISet(long i, const ring r)
returns the poly representing the integer i