Base Linear Solver Class
- class LinearSolverInterface
Bases:
ABC
This is the base class for linear solvers that work with the interior point algorithm. Derived classes must implement the following abstract methods:
do_symbolic_factorization
do_numeric_factorization
do_back_solve
get_inertia
- abstract do_symbolic_factorization(matrix, raise_on_error=True, timer=None)
Perform symbolic factorization with the nonzero structure of the matrix.
- abstract do_numeric_factorization(matrix, raise_on_error=True, timer=None)
Factorize the matrix. Can only be called after do_symbolic_factorization.
- abstract do_back_solve(rhs)
Solve the linear system matrix * x = rhs for x. Can only be called after do_numeric_factorization.
- abstract get_inertia()
Get the inertia of the factorized matrix. Can only be called after do_numeric_factorization.