cmatrix.Matrix.square

Matrix.square()

Test the square propriety of the matrix.

Returns
int

1 mean square matrix 0 mean not square matrix

Examples

>>> mat.get_coef()
0.0625
>>> mat=unit(3)
>>> mat.square()
True
>>> mat=Matrix(1,3,0.3)
>>> mat.square()
False