RandomMat( m, n[, R] ) F
RandomMat returns a new mutable random matrix with m rows and
n columns with elements taken from the ring R, which defaults
to Integers.
RandomInvertibleMat( m[, R] ) F
RandomInvertibleMat returns a new mutable invertible random
matrix with m rows and columns with elements taken from the ring
R, which defaults to Integers.
RandomUnimodularMat( m ) F
returns a new random mutable m ×m matrix with integer entries that is invertible over the integers.
gap> RandomMat(2,3,GF(3)); [ [ Z(3)^0, Z(3), Z(3)^0 ], [ Z(3), Z(3)^0, Z(3)^0 ] ] gap> RandomInvertibleMat(4); [ [ -1, 0, 1, -1 ], [ 2, 1, 3, 0 ], [ 1, 4, 0, 2 ], [ -3, 2, 1, 0 ] ]
[Top] [Previous] [Up] [Next] [Index]
GAP 4 manual