next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Normaliz :: getNumInvs

getNumInvs -- returns the numerical invariants computed

Synopsis

Description

This function returns a hashtable containing the invariants printed to the file with suffix inv, if the files are kept, i.e., if a filename is specified (see Keeping results of the computation by Normaliz). The key of an entry is a String describing the invariant, the value is the invariant, namely an ZZ for rank, index, multiplicity, a Sequence for the weights, the h-vector and the Hilbert polynomial and a Boolean for homogeneous and primary.

R=ZZ/37[x,y,t];
I=ideal(x^3,x^2*y,y^3);
nmzFilename="example";
setNmzOption("hilb",true);
intclMonIdeal I;
invs=getNumInvs()
hvector=invs#"h-vector"
rmNmzFiles();