34.4 NullMat

NullMat( m, n )
NullMat( m, n, F )

NullMat returns the null matrix with m rows and n columns over the field F. If no field is given, NullMat returns the null matrix over the field of rationals. Each call to NullMat returns a new matrix, so it is safe to modify the result.

    gap> PrintArray( NullMat( 2, 3 ) );
    [ [  0,  0,  0 ],
      [  0,  0,  0 ] ]
    gap> PrintArray( NullMat( 2, 2, GF(2) ) );
    [ [  0*Z(2),  0*Z(2) ],
      [  0*Z(2),  0*Z(2) ] ] 

Previous Up Top Next
Index

GAP 3.4.4
April 1997