pub fn validate_square_system<T>(
matrix: &Array2<T>,
rhs: &Array1<T>,
) -> Result<(), ShapeError>Expand description
Validate a square matrix and right-hand-side vector pair.
ยงErrors
Returns ShapeError::EmptyInput when matrix or rhs is empty,
ShapeError::NotSquare when matrix is not square, and
ShapeError::DimensionMismatch when rhs.len() != matrix.nrows().