TODO: there might be extreme cases where this doesn't hold...
63 ring sourcering = dst_r;
70 WerrorS(
"Sorry, not yet implemented for noncomm. rings");
81 int imagepvariables =
rVar(theImageRing);
82 int N =
rVar(dst_r)+imagepvariables;
87 WerrorS(
"error in rSumInternal");
93 if (theImageRing->cf != dst_r->cf)
96 WerrorS(
"Coefficient fields/rings must be equal");
107 if (theImageRing->qideal!=
NULL)
j+=
IDELEMS(theImageRing->qideal);
108 temp1 =
idInit(sourcering->N+
j,1);
109 for (
i=0;
i<sourcering->N;
i++)
128 for (
i=sourcering->N;i<sourcering->
N+j0;
i++)
134 for (
i=sourcering->N+j0;i<sourcering->
N+
j;
i++)
137 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,...
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 @Note: 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