next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

writeNmzData -- creates an input file for normaliz

Synopsis

Description

This function creates an input file for normaliz. The rows of sgr are considered as the generators of the semigroup. The parameter nmzMode sets the mode.
i1 : sgr=matrix({{1,2,3},{4,5,6},{7,8,10}})

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

              3        3
o1 : Matrix ZZ  <--- ZZ
i2 : writeNmzData(sgr,1)
i3 : nmzFile=setNmzFile()

o3 = nmzM2_19281
i4 : get(nmzFile|".in")

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

See also

Ways to use writeNmzData :