Go to the source code of this file.
◆ setID
Definition at line 133 of file mpr_base.cc.
Data Fields |
int |
pnt |
|
int |
set |
|
◆ onePoint
◆ _entry
◆ LIFT_COOR
◆ MAXEVPOINT
#define MAXEVPOINT 1000000 |
◆ MAXINITELEMS
◆ MAXPOINTS
◆ MAXRVVAL
◆ MAXVARS
◆ MINVDIST
◆ RVMULT
◆ SCALEDOWN
◆ Coord_t
◆ loNewtonPolytope()
ideal loNewtonPolytope |
( |
const ideal |
id | ) |
|
Definition at line 3191 of file mpr_base.cc.
3192{
3195 int totverts,idelem;
3196 ideal idr;
3197
3198
3200
3201 totverts = 0;
3202 for(
i=0;
i < idelem;
i++) totverts +=
pLength( (id->m)[
i] );
3203
3204 LP =
new simplex( idelem+totverts*2+5, totverts+5 );
3205
3206
3208 idr = chnp.newtonPolytopesI( id );
3209
3210 delete LP;
3211
3212 return idr;
3213}
Linear Programming / Linear Optimization using Simplex - Algorithm.
static int pLength(poly a)
◆ monomAt()
poly monomAt |
( |
poly |
p, |
|
|
int |
i |
|
) |
| |
◆ over()
unsigned long over |
( |
const unsigned long |
n, |
|
|
const unsigned long |
d |
|
) |
| |
Definition at line 2659 of file mpr_base.cc.
2660{
2664 mpz_init(
m);mpz_set_ui(
m,1);
2665 mpz_init(md);mpz_set_ui(md,1);
2666 mpz_init(mn);mpz_set_ui(mn,1);
2667
2669 mpz_fac_ui(md,d);
2670 mpz_fac_ui(mn,n);
2671
2674
2675 mpz_clear(
m);mpz_clear(md);mpz_clear(mn);
2676
2679
2681}