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

readNmzData -- reads an output file of Normaliz

Synopsis

Description

Reads an output file of Normaliz containing an integer matrix and returns it as an Matrix. For example, this function is useful if one wants to inspect the support hyperplanes. The filename is created from the current filename specified by the user and the suffix given to the function.
i1 : setNmzFilename("example") -- to keep the files
i2 : sgr=matrix({{1,2,3},{4,5,6},{7,8,10}});

              3        3
o2 : Matrix ZZ  <--- ZZ
i3 : normaliz(sgr,0)

o3 = | 1 2 3  |
     | 2 3 4  |
     | 3 4 5  |
     | 4 5 6  |
     | 7 8 10 |

              5        3
o3 : Matrix ZZ  <--- ZZ
i4 : readNmzData("sup")

o4 = | -2 -2 3  |
     | -4 11 -6 |
     | 1  -2 1  |

              3        3
o4 : Matrix ZZ  <--- ZZ
i5 : rmNmzFiles();

See also

Ways to use readNmzData :