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

readNmzData -- reads an output file of Normaliz containing one matrix

Synopsis

Description

Reads an output file of Normaliz containing an integer matrix and returns it as a Matrix, whose rows contains the data computed (in contrast to the convention used in M2). To read the .inv file, use getNumInvs. The filename is created from the current filename specified by the user and the suffix given to the function. The possible suffixes depend on the input and the computation mode. The computation mode is controled via the options, see setNmzOption. For the possible output files see output files written by Normaliz. For more details we refer to the documentation of Normaliz available as pdf file at http://www.math.uos.de/normaliz/.

nmzFilename="example" -- to keep the files
setNmzOption("allf",true); -- to write all files
mat=matrix({{1,2,3},{4,5,6},{7,8,10}});
normaliz(mat,"integral_closure")
readNmzData "typ"
rmNmzFiles();

See also

Ways to use readNmzData :