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 3190 of file mpr_base.cc.
3191{
3194 int totverts,idelem;
3195 ideal idr;
3196
3197
3199
3200 totverts = 0;
3201 for(
i=0;
i < idelem;
i++) totverts +=
pLength( (id->m)[
i] );
3202
3203 LP =
new simplex( idelem+totverts*2+5, totverts+5 );
3204
3205
3207 idr = chnp.newtonPolytopesI( id );
3208
3209 delete LP;
3210
3211 return idr;
3212}
Linear Programming / Linear Optimization using Simplex - Algorithm.
static unsigned 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 2658 of file mpr_base.cc.
2659{
2663 mpz_init(
m);mpz_set_ui(
m,1);
2664 mpz_init(md);mpz_set_ui(md,1);
2665 mpz_init(mn);mpz_set_ui(mn,1);
2666
2668 mpz_fac_ui(md,d);
2669 mpz_fac_ui(mn,n);
2670
2673
2674 mpz_clear(
m);mpz_clear(md);mpz_clear(mn);
2675
2678
2680}