|
bool | inHull (poly p, poly pointPoly, int m, int site) |
| Returns true iff the support of poly pointPoly is inside the convex hull of all points given by the support of poly p. More...
|
|
Definition at line 252 of file mpr_base.cc.
convexHull::convexHull |
( |
simplex * |
_pLP | ) |
|
|
inline |
convexHull::~convexHull |
( |
| ) |
|
|
inline |
bool convexHull::inHull |
( |
poly |
p, |
|
|
poly |
pointPoly, |
|
|
int |
m, |
|
|
int |
site |
|
) |
| |
|
private |
Returns true iff the support of poly pointPoly is inside the convex hull of all points given by the support of poly p.
Definition at line 733 of file mpr_base.cc.
745 for ( j=3; j <=
pLP->
n; j++)
751 for( i= 1; i <=
n; i++) {
754 for( j= 1; j <=
m; j++ )
765 PrintS(
"Matrix of Linear Programming\n");
#define pGetExp(p, i)
Exponent.
poly monomAt(poly p, int i)
void PrintS(const char *s)
ideal convexHull::newtonPolytopesI |
( |
const ideal |
gls | ) |
|
Definition at line 837 of file mpr_base.cc.
847 vert= (
int *)
omAlloc( (idelem+1) *
sizeof(int) );
850 for( i= 0; i < idelem; i++ )
855 for( j= 1; j <=
m; j++) {
856 if( !
inHull( (gls->m)[i], p, m, j ) )
858 if ( (id->m)[
i] ==
NULL )
860 (
id->m)[i]=
pHead(p);
880 omFreeSize( (
void *) vert, (idelem+1) *
sizeof(
int) );
884 for( i= 0; i < idelem; i++ )
#define mprSTICKYPROT(msg)
#define omFreeSize(addr, size)
static int pLength(poly a)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define pHead(p)
returns newly allocated copy of Lm(p), coef is copied, next=NULL, p might be NULL ...
ideal idInit(int idsize, int rank)
initialise an ideal / module
bool inHull(poly p, poly pointPoly, int m, int site)
Returns true iff the support of poly pointPoly is inside the convex hull of all points given by the s...
Computes the point sets of the convex hulls of the supports given by the polynoms in gls.
Returns Q[].
Definition at line 779 of file mpr_base.cc.
787 vert= (
int *)
omAlloc( (idelem+1) *
sizeof(int) );
790 for ( i= 0; i < idelem; i++ )
793 for( i= 0; i < idelem; i++ )
799 for( j= 1; j <=
m; j++) {
800 if( !
inHull( (gls->m)[i], p, m, j ) )
816 omFreeSize( (
void *) vert, (idelem+1) *
sizeof(
int) );
820 for( i= 0; i < idelem; i++ )
822 Print(
" \\Conv(Qi[%d]): #%d\n", i,
Q[i]->
num );
823 for ( j=1; j <=
Q[
i]->
num; j++ )
#define mprSTICKYPROT(msg)
#define omFreeSize(addr, size)
static int pLength(poly a)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
void PrintS(const char *s)
bool addPoint(const onePointP vert)
Adds a point to pointSet, copy vert[0,...,dim] ot point[num+1][0,...,dim].
#define pGetExpV(p, e)
Gets a copy of (resp. set) the exponent vector, where e is assumed to point to (r->N +1)*sizeof(long)...
bool inHull(poly p, poly pointPoly, int m, int site)
Returns true iff the support of poly pointPoly is inside the convex hull of all points given by the s...
The documentation for this class was generated from the following file: