ConjugateGradientPolicy¶
- class probnum.linalg.solvers.policies.ConjugateGradientPolicy¶
Bases:
probnum.linalg.solvers.policies.LinearSolverPolicy
Policy returning \(A\)-conjugate actions.
Selects the negative gradient / residual as an initial action \(s_0 = b - A x_0\) and then successively generates \(A\)-conjugate actions, i.e. the actions satisfy \(s_i^\top A s_j = 0\) iff \(i \neq j\).
Methods Summary
__call__
(solver_state)Return an action for a given solver state.
Methods Documentation
- __call__(solver_state)[source]¶
Return an action for a given solver state.
- Parameters
solver_state (
ProbabilisticLinearSolverState
) – Current state of the linear solver.- Return type