cosapp.core.numerics.solve.linear_solver¶
Classes
Linear solver based on dense LU decomposition. |
|
Linear solver based on sparse LU decomposition. |
- class cosapp.core.numerics.solve.linear_solver.AbstractLinearSolver[source]¶
Bases:
HasOptions- abstract has_valid_state(size: int) bool[source]¶
Gets whether the implementation is in valid state or not.
- abstract property need_jacobian: bool¶
Gets whether the implementation needs eager computation of a Jacobian matrix or not.
- class cosapp.core.numerics.solve.linear_solver.DenseLUSolver[source]¶
Bases:
GradientBasedLSLinear solver based on dense LU decomposition.
- property jacobian: ndarray¶
Gets the Jacobian matrix.
- property need_jacobian: bool¶
Gets whether the implementation needs eager computation of a Jacobian matrix or not.
- class cosapp.core.numerics.solve.linear_solver.GradientBasedLS[source]¶
Bases:
AbstractLinearSolver- abstract property jacobian: ndarray¶
Gets the Jacobian matrix.
- class cosapp.core.numerics.solve.linear_solver.SparseLUSolver[source]¶
Bases:
AbstractLinearSolverLinear solver based on sparse LU decomposition.
- property jacobian: ndarray¶
Gets the Jacobian matrix.
- property need_jacobian: bool¶
Gets whether the implementation needs eager computation of a Jacobian matrix or not.
- cosapp.core.numerics.solve.linear_solver.object__getstate__(self, /)¶
Helper for pickle.