is_square_matrix¶
-
forest.benchmarking.operator_tools.validate_operator.is_square_matrix(matrix: numpy.ndarray) → bool¶ Checks if a matrix is square.
Parameters: - matrix – a M by N matrix.
- rtol – The relative tolerance parameter in np.allclose
- atol – The absolute tolerance parameter in np.allclose
Returns: True if the matrix is square; False otherwise.