Man
Algebra
Matrix
isSquare
Matrix.isSquare
Checks if the matrix is square.
Arguments
None
Return values
condition
is TRUE if the matrix is square, FALSE otherwise.
Complexity
Constant
Example
"sl/algebra" useFile m1: ((1.0 3.0 2.0) (1.0 2.0 3.0) (4.0 6.0 6.0)) makeMatrix; m2: ((1.0 3.0 2.0) (4.0 6.0 6.0)) makeMatrix; m1.isSquare print LF print m2.isSquare print
Output:
TRUE FALSE