. The function returns an object of type
, if computed, and possibly some additional information. At the moment only choices of the types 4, 5 and 6 are possible. The type determines how the rows of the matrix are interpreted, see also
, and decides what the program will do. Let L be the sublattice of ℤ
that consists of the solutions of the system of congruences defined by the input matrix of type 6 (L=ℤ
if there is no matrix of type 6). Let A be the matrix of type 4 and B be the matrix of type 5. Then the cone specified by this input data is the cone C={x∈ℝn: Ax=0, Bx ≥0} and the Hilbert basis of C∩L is computed. If there is no matrix of type 5, then the system of equations is empty, satisfied by all vectors of ℝ
. Note that there is always a matrix of type 4, either explicitly, if it is in the input, or implicitly, namely the n ×n unit matrix, if there is no matrix of type 4 in the input (but one of type 5 or 6). It is possibly to give several matrices of the same type. All matrices of one type are then appended to one matrix by
.
By default, the cone returned contains only the content of the output file .gen, under the key "gen", i.e. the generators that have been computed, line by line and the content of the output file .inv, under the key "inv".
hy=matrix {{-1,0,-1,0,3,0,0,0,0},{-1,0,1,0,1,0,0,0,0},{1,0,1,0,-1,0,0,0,0},{1,0,-1,0,1,0,0,0,0}}; |
eq=matrix {{1,1,1,-1,-1,-1,0,0,0},{1,1,1,0,0,0,-1,-1,-1},{0,1,1,-1,0, 0,-1,0,0},{1,0,1,0,-1,0,0,-1,0},{1,1,0,0,0,-1,0,0,-1},{0,1,1,0,-1,0,0,0,-1},{1,1,0,0,-1,0,-1,0,0}}; |
cg=matrix {{1,0,0,0,0,0,0,0,0,2},{0,0,1,0,0,0,0,0,0,2},{0,0,0,0,0,0,1,0,0,2},{0,0,0,0,0,0,0,0,1,2}}; |
rc=normaliz({(hy,4),(eq,5),(cg,6)}); |
rc#"gen" |
). Then the method returns an object of type RationalCone whose keys are the suffixes of all the output files written, with value the content of the corresponding output file, which is an matrix whose rows contain the data computed, except for the suffix
).