pub fn solve_implicit_system(
mat: &[Vec<f64>],
rhs: &[f64],
) -> OptimizeResult<Vec<f64>>Expand description
Solve the linear system A x = rhs via Gaussian elimination with partial
pivoting.
Both mat (square, row-major) and rhs are consumed / mutated.
ยงErrors
Returns OptimizeError::ComputationError if the matrix is singular.