next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Normaliz :: writeNmzData(Matrix,ZZ)

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

Synopsis

Description

This function creates an input file for Normaliz. The rows of mat are considered according to the type:

  • type 0,1: generators of a rational cone
  • type 2: lattice points spanning a polytope
  • type 3: exponent vectors of monomials generating an ideal
  • type 4: hyperplanes defining the cone to be computed
  • type 5: linear system of equations
  • type 6: homogeneous congruences
  • type 10: generators of a lattice ideal
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,1)
i4 : get ("example.in")

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

See also