Loading...
Searching...
No Matches
shiftgb.cc
Go to the documentation of this file.
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT: kernel: utils for shift GB and free GB
*/
#include "kernel/mod2.h"
#ifdef HAVE_SHIFTBBA
#include "polys/monomials/ring.h"
#include "kernel/polys.h"
#include "coeffs/numbers.h"
#include "kernel/ideals.h"
#include "polys/matpol.h"
#include "polys/kbuckets.h"
#include "kernel/GBEngine/kstd1.h"
#include "polys/sbuckets.h"
#include "polys/operations/p_Mult_q.h"
#include "kernel/GBEngine/kutil.h"
#include "kernel/structs.h"
#include "kernel/GBEngine/khstd.h"
#include "polys/kbuckets.h"
#include "polys/weight.h"
#include "misc/intvec.h"
#include "kernel/structs.h"
#include "kernel/GBEngine/kInline.h"
#include "kernel/combinatorics/stairc.h"
#include "polys/weight.h"
#include "misc/intvec.h"
#include "kernel/GBEngine/shiftgb.h"
#include "polys/nc/sca.h"
#include "polys/shiftop.h"
poly p_LPCopyAndShiftLM(poly p, int sh, const ring r)
{
if (sh == 0 || p == NULL) return p;
poly q = p_Head(p, r);
p_mLPshift(q, sh, r);
pNext(q) = pNext(p);
return q;
}
int p_mLPmaxPossibleShift(poly p, const ring r)
{
int lastBlock = p_mLastVblock(p, r);
if (lastBlock == 0) return 0;
int uptodeg = r->N/r->isLPring;
return uptodeg - lastBlock;
}
#endif
p
int p
Definition cfModGcd.cc:4086
ideals.h
intvec.h
kInline.h
kbuckets.h
khstd.h
kstd1.h
kutil.h
matpol.h
mod2.h
pNext
#define pNext(p)
Definition monomials.h:36
numbers.h
NULL
#define NULL
Definition omList.c:12
p_Mult_q.h
p_Head
static poly p_Head(const poly p, const ring r)
copy the (leading) term of p
Definition p_polys.h:862
polys.h
Compatibility layer for legacy polynomial operations (over currRing).
ring.h
sbuckets.h
sca.h
p_LPCopyAndShiftLM
poly p_LPCopyAndShiftLM(poly p, int sh, const ring r)
Definition shiftgb.cc:35
p_mLPmaxPossibleShift
int p_mLPmaxPossibleShift(poly p, const ring r)
Definition shiftgb.cc:45
shiftgb.h
p_mLastVblock
int p_mLastVblock(poly p, const ring ri)
Definition shiftop.cc:421
p_mLPshift
void p_mLPshift(poly m, int sh, const ring ri)
Definition shiftop.cc:362
shiftop.h
stairc.h
structs.h
weight.h