Singular Manual: writeNmzData

| #### D.4.24.24 writeNmzData Procedure from library `normaliz.lib` (see normaliz_lib). Usage: writeNmzData(intmat M, string nmz_type); writeNmzData(intmat M, string nmz_type, intmat M2, string nmz_type2, ...); Create: Creates an input file for Normaliz from the matrix M. The second parameter sets the type. How the matrix is interpreted depends on the type. See the Normaliz documentation for more information. It is also possible to give more than one pair of matrix and type. In Note: Needs an explicit filename set. The filename is created from the current filename. Note that all high level 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,"cone_and_lattice");
    int dummy=system("sh","cat VeryInteresting.in");
    ==> amb_space auto
    ==> cone_and_lattice
    ==> [
    ==> [1, 2, 3]
    ==> [4, 5, 6]
    ==> [7, 8, 10]
    ==> ]
    intmat Inequalities[2][3] = 2,-1,0, // 2x-y >= 0
    1, 1,0; //  x+y >= 0
    intmat Equation[1][3] = 0,1,-1;    // y = z
    intmat Congruence[1][4] = 1,0,0,3;  // x = 0 (3)
    writeNmzData(Inequalities,"inequalities",Equation,"equations",Congruence,"congruences");
    dummy=system("sh","cat VeryInteresting.in");
    ==> amb_space auto
    ==> inequalities
    ==> [
    ==> [2, -1, 0]
    ==> [1, 1, 0]
    ==> ]
    ==> equations
    ==> [
    ==> [0, 1, -1]
    ==> ]
    ==> congruences
    ==> [
    ==> [1, 0, 0, 3]
    ==> ]
See also: readNmzData; rmNmzFiles; setNmzDataPath; setNmzFilename.

User manual for Singular version 4.4.0, 2024, generated by texi2html.