Go to the source code of this file.
| Enumerator |
|---|
| mprOk |
|
| mprWrongRType |
|
| mprHasOne |
|
| mprInfNumOfVars |
|
| mprNotReduced |
|
| mprNotZeroDim |
|
| mprNotHomog |
|
| mprUnSupField |
|
Definition at line 96 of file mpr_base.h.
| ideal loNewtonPolytope |
( |
const ideal |
id | ) |
|
Definition at line 3190 of file mpr_base.cc.
3194 int totverts,idelem;
3201 for( i=0; i < idelem; i++) totverts +=
pLength( (id->m)[i] );
3203 LP =
new simplex( idelem+totverts*2+5, totverts+5 );
3207 idr = chnp.newtonPolytopesI(
id );
Linear Programming / Linear Optimization using Simplex - Algorithm.
static int pLength(poly a)
Definition at line 93 of file mpr_inout.cc.
103 if ( rmatrix ) numOfVars++;
108 if (
IDELEMS(theIdeal) != numOfVars )
111 for ( k=
IDELEMS(theIdeal) - 1; (state ==
mprOk) && (k >= 0); k-- )
113 poly p = (theIdeal->m)[k];
127 if ( state !=
mprOk ) mprPrintError( state,
"" );
BOOLEAN p_IsHomogeneous(poly p, const ring r)
static BOOLEAN rField_is_R(const ring r)
static BOOLEAN rField_is_Q_a(const ring r)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define pIsConstant(p)
like above, except that Comp might be != 0
static BOOLEAN rField_is_Q(const ring r)
static BOOLEAN rField_is_long_C(const ring r)
static BOOLEAN rField_is_long_R(const ring r)