up previous next
RandomSparseNonSing01Mat    --    random sparse non-singular (0,1) matrix


Syntax
RandomSparseNonSing01Mat(R: RING, N: INT): MAT

Description
This function returns a random N-by-N sparse matrix (with entries 0 or 1) having non-zero determinant.

Example
/**/ RandomSparseNonSing01Mat(ZZ, 3);
matrix(ZZ,
 [[1, 1, 0],
  [0, 1, 0],
  [0, 0, 1]])

See Also