Home Online Manual
Back: toric_lib
Forward: toric_std
FastBack: symodstd_lib
FastForward: Algebraic geometry
Up: toric_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.4.28.1 toric_ideal

Procedure from library toric.lib (see toric_lib).

toric_ideal(A,alg); A intmat, alg string
toric_ideal(A,alg,prsv); A intmat, alg string, prsv intvec

ideal: standard basis of the toric ideal of A

These procedures return the standard basis of the toric ideal of A with respect to the term ordering in the current basering. Not all term orderings are supported: The usual global term orderings may be used, but no block orderings combining them.
One may call the procedure with several different algorithms:
- the algorithm of Conti/Traverso using elimination (ect),
- the algorithm of Pottier (pt),
- an algorithm of Bigatti/La Scala/Robbiano (blr),
- the algorithm of Hosten/Sturmfels (hs),
- the algorithm of DiBiase/Urbanke (du).
The argument `alg' should be the abbreviation for an algorithm as above: ect, pt, blr, hs or du.

If `alg' is chosen to be `blr' or `hs', the algorithm needs a vector with positive coefficients in the row space of A.
If no row of A contains only positive entries, one has to use the second version of toric_ideal which takes such a vector as its third argument.
For the mathematical background, see

Toric ideals and integer programming.

LIB "toric.lib";
ring r=0,(x,y,z),dp;
// call with two arguments
intmat A[2][3]=1,1,0,0,1,1;
==> 1,1,0,
==> 0,1,1 
ideal I=toric_ideal(A,"du");
==> I[1]=xz-y
==>    ? The chosen algorithm needs a positive vector in the row space of the\
==>    ? leaving toric.lib::toric_ideal_1
==>    ? leaving toric.lib::toric_ideal
==> I[1]=xz-y
// call with three arguments
intvec prsv=1,2,1;
==> I[1]=xz-y
See also: Toric ideals; intprog_lib; toric_lib; toric_std.