| LIB "multigrading.lib";
intmat V[3][2] =
1,4,
2,5,
3,6;
// should return a (3x2)-matrix whose columns
// generate the same lattice as [1, 2, 3] and [0, 1, 2]
intmat R = primitiveSpan(V);
print(R);
==> 1 0
==> 2 1
==> 3 2
// another example
intmat W[2][2] =
1,0,
0,1;
// should return a (2x2)-matrix whose columns
// generate the same lattice as [1, 0] and [0, 1]
intmat S = primitiveSpan(W);
print(S);
==> 1 0
==> 0 1
kill V, R, S, W;
|