Macaulay2 » Documentation
Packages » Normaliz :: writeNmzData(Matrix,String)
next | previous | forward | backward | up | index | toc

writeNmzData(Matrix,String) -- creates an input file for Normaliz with one matrix

Synopsis

Description

This function creates an input file for Normaliz with a single input matrix and its type. If no filename has been specified, an error occurs.

i1 : nmzFilename="example"; -- to keep the files
i2 : mat=matrix({{1,2,3},{4,5,6},{7,8,10}})

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

              3       3
o2 : Matrix ZZ  <-- ZZ
i3 : writeNmzData(mat,"normalization")
i4 : get ("example.in")

o4 = 3
     3
     1 2 3 
     4 5 6 
     7 8 10 
     normalization
i5 : rmNmzFiles();

See also

Ways to use this method: