24template <
typename CExponent>
39 inline poly
LM(
const poly pTerm,
const ring r,
int i = 1)
const
47 inline poly
MultiplyTE(
const poly pTerm,
const CExponent expRight)
50 poly pMonom =
LM(pTerm, r);
61 inline poly
MultiplyET(
const CExponent expLeft,
const poly pTerm)
64 poly pMonom =
LM(pTerm, r);
77 virtual poly
MultiplyEE(
const CExponent expLeft,
const CExponent expRight) = 0;
80 virtual poly
MultiplyME(
const poly pMonom,
const CExponent expRight) = 0;
83 virtual poly
MultiplyEM(
const CExponent expLeft,
const poly pMonom) = 0;
216 for( poly q = pPoly; q !=
NULL; q =
pNext(q) )
228 for( poly q = pPoly; q !=
NULL; q =
pNext(q) )
305 if( iComponentMonom!=0 )
307 for( poly q = pPoly; q !=
NULL; q =
pNext(q) )
315 Werror(
"MultiplyPE: both sides have non-zero components: %d and %d!\n", iComponent, iComponentMonom);
329 for( poly q = pPoly; q !=
NULL; q =
pNext(q) )
336 Warn(
"MultiplyPE: Multiplication in the left module from the right by component %d!\n", iComponent);
357 if( iComponentMonom!=0 )
359 for( poly q = pPoly; q !=
NULL; q =
pNext(q) )
367 Werror(
"MultiplyEP: both sides have non-zero components: %d and %d!\n", iComponent, iComponentMonom);
380 for( poly q = pPoly; q !=
NULL; q =
pNext(q) )
402 if( iComponentMonom!=0 )
412 Werror(
"MultiplyPEDestroy: both sides have non-zero components: %d and %d!\n", iComponent, iComponentMonom);
433 Warn(
"MultiplyPEDestroy: Multiplication in the left module from the right by component %d!\n", iComponent);
456 if( iComponentMonom!=0 )
466 Werror(
"MultiplyEPDestroy: both sides have non-zero components: %d and %d!\n", iComponent, iComponentMonom);
507 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
518 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
534 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
550 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
565 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
582 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
600 virtual poly
MultiplyEE(
const int expLeft,
const int expRight);
const CanonicalForm CFMap CFMap & N
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual ~CAntiCommutativeSpecialPairMultiplier()
virtual ~CCommutativeSpecialPairMultiplier()
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual ~CExternalSpecialPairMultiplier()
poly MultiplyPEDestroy(poly pPoly, const CExponent expRight)
poly MultiplyEPDestroy(const CExponent expLeft, poly pPoly)
virtual poly MultiplyME(const poly pMonom, const CExponent expRight)
CPowerMultiplier * m_powers
poly MultiplyEP(const CExponent expLeft, const poly pPoly)
virtual poly MultiplyEE(const CExponent expLeft, const CExponent expRight)
poly MultiplyPE(const poly pPoly, const CExponent expRight)
const CFormulaPowerMultiplier * m_RingFormulaMultiplier
CMultiplier< poly > CBaseType
virtual poly MultiplyEM(const CExponent expLeft, const poly pMonom)
virtual ~CGlobalMultiplier()
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual ~CHWeylSpecialPairMultiplier()
CMultiplier(ring rBaseRing)
CMultiplier(const CMultiplier &)
CMultiplier & operator=(const CMultiplier &)
virtual poly MultiplyME(const poly pMonom, const CExponent expRight)=0
poly MultiplyTE(const poly pTerm, const CExponent expRight)
poly LM(const poly pTerm, const ring r, int i=1) const
poly MultiplyET(const CExponent expLeft, const poly pTerm)
virtual poly MultiplyEE(const CExponent expLeft, const CExponent expRight)=0
virtual poly MultiplyEM(const CExponent expLeft, const poly pMonom)=0
CPolynomialSummator: unifies bucket and polynomial summation as the later is brocken in buckets :(.
CSpecialPairMultiplier *& GetPair(int i, int j)
virtual ~CPowerMultiplier()
virtual poly MultiplyEE(const CExponent expLeft, const CExponent expRight)
virtual poly MultiplyME(const poly pMonom, const CExponent expRight)
poly MultiplyPE(const poly pPoly, const CExponent expRight)
virtual poly MultiplyEM(const CExponent expLeft, const poly pMonom)
CSpecialPairMultiplier * GetPair(int i, int j) const
poly MultiplyPEDestroy(poly pPoly, const CExponent expRight)
poly MultiplyEPDestroy(const CExponent expLeft, poly pPoly)
CSpecialPairMultiplier ** m_specialpairs
poly MultiplyEP(const CExponent expLeft, const poly pPoly)
virtual ~CQuasiCommutativeSpecialPairMultiplier()
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual ~CShiftSpecialPairMultiplier()
virtual poly MultiplyEM(const CExponent expLeft, const poly pMonom)
virtual poly MultiplyME(const poly pMonom, const CExponent expRight)
virtual ~CSpecialPairMultiplier()
virtual poly MultiplyEE(const CExponent expLeft, const CExponent expRight)=0
virtual poly MultiplyEE(const int expLeft, const int expRight)
virtual ~CWeylSpecialPairMultiplier()
static FORCE_INLINE number n_Init(long i, const coeffs r)
a number representing i in the given coeff field/ring r
const CanonicalForm int s
BOOLEAN ncInitSpecialPairMultiplication(ring r)
#define TEST_OPT_NOT_BUCKETS
#define MIN_LENGTH_BUCKET
static int pLength(poly a)
static poly p_LmInit(poly p, const ring r)
static void p_SetCompP(poly p, int i, ring r)
static poly p_Mult_nn(poly p, number n, const ring r)
static void p_Delete(poly *p, const ring r)
static poly p_LmDeleteAndNext(poly p, const ring r)
void Werror(const char *fmt,...)