My Project
debian-1:4.1.2-p1+ds-2
kernel
GBEngine
shiftgb.cc
Go to the documentation of this file.
1
/****************************************
2
* Computer Algebra System SINGULAR *
3
****************************************/
4
/*
5
* ABSTRACT: kernel: utils for shift GB and free GB
6
*/
7
8
#include "
kernel/mod2.h
"
9
10
#ifdef HAVE_SHIFTBBA
11
#include "
polys/monomials/ring.h
"
12
#include "
kernel/polys.h
"
13
#include "
coeffs/numbers.h
"
14
#include "
kernel/ideals.h
"
15
#include "
polys/matpol.h
"
16
#include "
polys/kbuckets.h
"
17
#include "
kernel/GBEngine/kstd1.h
"
18
#include "
polys/sbuckets.h
"
19
#include "
polys/operations/p_Mult_q.h
"
20
#include "
kernel/GBEngine/kutil.h
"
21
#include "
kernel/structs.h
"
22
#include "
kernel/GBEngine/khstd.h
"
23
#include "
polys/kbuckets.h
"
24
#include "
polys/weight.h
"
25
#include "
misc/intvec.h
"
26
#include "
kernel/structs.h
"
27
#include "
kernel/GBEngine/kInline.h
"
28
#include "
kernel/combinatorics/stairc.h
"
29
#include "
polys/weight.h
"
30
#include "
misc/intvec.h
"
31
#include "
kernel/GBEngine/shiftgb.h
"
32
#include "
polys/nc/sca.h
"
33
#include "
polys/shiftop.h
"
34
35
poly
p_LPCopyAndShiftLM
(poly
p
,
int
sh,
const
ring r)
36
{
37
if
(sh == 0 ||
p
==
NULL
)
return
p
;
38
39
poly q =
p_Head
(
p
, r);
40
p_mLPshift
(q, sh, r);
41
pNext
(q) =
pNext
(
p
);
42
return
q;
43
}
44
45
int
p_mLPmaxPossibleShift
(poly
p
,
const
ring r)
46
{
47
int
lastBlock =
p_mLastVblock
(
p
, r);
48
if
(lastBlock == 0)
return
0;
49
int
uptodeg = r->N/r->isLPring;
50
return
uptodeg - lastBlock;
51
}
52
53
#endif
kutil.h
kInline.h
p_Head
static poly p_Head(poly p, const ring r)
copy the i(leading) term of p
Definition:
p_polys.h:810
weight.h
polys.h
p_mLastVblock
int p_mLastVblock(poly p, const ring ri)
Definition:
shiftop.cc:416
p_LPCopyAndShiftLM
poly p_LPCopyAndShiftLM(poly p, int sh, const ring r)
Definition:
shiftgb.cc:34
shiftop.h
stairc.h
matpol.h
structs.h
p_mLPshift
void p_mLPshift(poly m, int sh, const ring ri)
Definition:
shiftop.cc:357
mod2.h
sca.h
p_Mult_q.h
shiftgb.h
p_mLPmaxPossibleShift
int p_mLPmaxPossibleShift(poly p, const ring r)
Definition:
shiftgb.cc:44
intvec.h
kbuckets.h
ring.h
kstd1.h
khstd.h
NULL
#define NULL
Definition:
omList.c:11
ideals.h
p
int p
Definition:
cfModGcd.cc:4019
sbuckets.h
numbers.h
pNext
#define pNext(p)
Definition:
monomials.h:33
Generated on Thu Jan 9 2020 20:32:43 for My Project by
doxygen 1.8.16
for
Singular debian-1:4.1.2-p1+ds-2