Skip to content

SquareMatrixQ

Tests whether an expression is a square matrix.

$ wo 'SquareMatrixQ[{{1, 2}, {3, 4}}]'
True
$ wo 'SquareMatrixQ[{{1, 2, 3}, {4, 5, 6}}]'
False