psychopy.tools.mathtools.isOrthogonal¶
- psychopy.tools.mathtools.isOrthogonal(m)[source]¶
Check if a square matrix is orthogonal.
If a matrix is orthogonal, its columns form an orthonormal basis and is non-singular. An orthogonal matrix is invertible by simply taking the transpose of the matrix.
- Parameters:
m (array_like) – Square matrix, either 2x2, 3x3 or 4x4.
- Returns:
True if the matrix is orthogonal.
- Return type: