function is_square_matrix¶
- deeptime.numeric.is_square_matrix(arr) bool ¶
Determines whether an array is a square matrix. This means that ndim must be 2 and shape[0] must be equal to shape[1].
- Parameters:
arr (object) – The array to check.
- Returns:
is_square_matrix – Whether the array is a square matrix.
- Return type:
bool