next | previous | forward | backward | up | top | index | toc | Macaulay2 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. If no filename has been specified, an error occurs.
i1 : setNmzFilename("example"); -- to keep the files
i2 : sgr=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(sgr,1)
i4 : get(setNmzFile()|".in")

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

See also

Ways to use writeNmzData :