|  | LIB "multigrading.lib";
intmat A[3][4] =
1,0,1,0,
1,2,0,0,
0,0,0,0;
int r = intRank(A);
print(A);
==>      1     0     1     0
==>      1     2     0     0
==>      0     0     0     0
print(r); // Should be 2
==> 2
// another example
intmat B[2][2] =
1,2,
1,2;
int d = intRank(B);
print(B);
==>      1     2
==>      1     2
print(d); // Should be 1
==> 1
kill A, B, r, d;
 |