Base Linear Solver Class
- class LinearSolverInterface
Bases:
ABCThis 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
- abstractmethod do_symbolic_factorization(matrix, raise_on_error=True, timer=None)
Perform symbolic factorization with the nonzero structure of the matrix.
- abstractmethod do_numeric_factorization(matrix, raise_on_error=True, timer=None)
Factorize the matrix. Can only be called after do_symbolic_factorization.
- abstractmethod do_back_solve(rhs)
Solve the linear system matrix * x = rhs for x. Can only be called after do_numeric_factorization.
- abstractmethod get_inertia()
Get the inertia of the factorized matrix. Can only be called after do_numeric_factorization.