| 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]
==> ]
|