Most matrix types are defined by one equation: , , . Test the cheap properties first (shape, zeros, transpose), then the ones that need a product.
| Step | On | |
|---|---|---|
| 1 | Check the shape. Every type below needs a square () matrix. | : square |
| 2 | Look at the zero pattern. Zeros off the diagonal: diagonal. Zeros below it: upper triangular. Zeros above it: lower triangular. | zeros only at and : not diagonal or triangular |
| 3 | Compare A with its transpose. : symmetric. : skew-symmetric.Transpose ↗ | , , : symmetric |
| 4 | Test the product equations. : orthogonal. : idempotent. : involutory. : nilpotent. | column 1 has length : not orthogonal; : not idempotent or involutory; trace : not nilpotent |
| 5 | Check whether it is singular. means singular; otherwise the matrix is invertible. | : symmetric and invertible |