|
D.4.16.15 writeNmzData
Procedure from library normaliz.lib (see normaliz_lib).
- Usage:
- writeNmzData(intmat M, int mode);
- Create:
- Creates an input file for Normaliz from the matrix M. The second
parameter sets the mode. How the matrix is interpreted depends on the
mode. See the Normaliz documentation for more information.
- Note:
- Needs an explicit filename set. The filename is created from the
current filename and the suffix given to the function.
Note that all functions in normaliz.lib write and read their data
automatically to and from the hard disk so that writeNmzData will
hardly ever be used explicitly.
Example:
| LIB "normaliz.lib";
setNmzFilename("VeryInteresting");
intmat sgr[3][3]=1,2,3,4,5,6,7,8,10;
writeNmzData(sgr,1);
int dummy=system("sh","cat VeryInteresting.in");
==> 3
==> 3
==> 1 2 3
==> 4 5 6
==> 7 8 10
==> 1
| See also:
readNmzData;
rmNmzFiles;
setNmzDataPath;
setNmzFilename.
|