next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Normaliz :: writeNmzData(List)

writeNmzData(List) -- creates an input file for Normaliz with several matrices

Synopsis

Description

This function writes an input file for Normaliz containing several matrices. The input is a list consisting of pairs (mat,nmzType), each is handled as in writeNmzData but all written into the same input file. If no filename has been specified, an error occurs.

i1 : nmzFilename="example"; -- to keep the files
i2 : hy=(matrix {{1, -1, 0},{1, 1, -2}},"inequalities")

o2 = (| 1 -1 0  |, inequalities)
      | 1 1  -2 |

o2 : Sequence
i3 : eq=(matrix {{1, 2, 3},{2, 2, 3}},"equations")

o3 = (| 1 2 3 |, equations)
      | 2 2 3 |

o3 : Sequence
i4 : cg=(matrix {{9, 8, 7},{7, 6, 5}},"congruences")

o4 = (| 9 8 7 |, congruences)
      | 7 6 5 |

o4 : Sequence
i5 : writeNmzData {hy, eq, cg};
i6 : get ("example.in")

o6 = 2
     3
     1 -1 0 
     1 1 -2 
     inequalities
     2
     3
     1 2 3 
     2 2 3 
     equations
     2
     3
     9 8 7 
     7 6 5 
     congruences
i7 : rmNmzFiles();