Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Define a 7x7 random matrix (you must give the base ring (in my example integer ring (ZZ)):

A = random_matrix(ZZ,7,7)

Zero matrix:

O = zero_matrix(7,7)

or:

O = matrix(7,7,0)

Identity matrix:

E = identity_matrix(7,7)

or:

E = matrix(7,7,1)