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/.
i1 : nmzFilename="example" -- to keep the files
o1 = example
|
i2 : mat=matrix({{1,2,3},{4,5,6},{7,8,10}});
3 3
o2 : Matrix ZZ <--- ZZ
|
i3 : normaliz(mat,0)
o3 = RationalCone{gen => | 1 2 3 | }
| 2 3 4 |
| 3 4 5 |
| 4 5 6 |
| 7 8 10 |
inv => HashTable{height 1 elements => 5 }
hilbert basis elements => 5
homogeneous => true
homogeneous weights => (-1, 1, 0)
index => 3
multiplicity => 3
number extreme rays => 3
number support hyperplanes => 3
rank => 3
o3 : RationalCone
|
i4 : readNmzData "typ"
o4 = | 3 0 0 |
| 2 1 0 |
| 1 2 0 |
| 0 3 0 |
| 0 0 1 |
5 3
o4 : Matrix ZZ <--- ZZ
|
i5 : rmNmzFiles();
|