LinearSolverState¶
- class probnum.linalg.solvers.LinearSolverState(problem, prior)¶
Bases:
object
State of a probabilistic linear solver.
The solver state separates the state of a probabilistic linear solver from the algorithm itself, making the solver stateless. The state contains the problem to be solved, the current belief over the quantities of interest and any miscellaneous quantities computed during an iteration of a probabilistic linear solver. The solver state is passed between the different components of the solver and may be used internally to cache quantities which are used more than once.
- Parameters
problem (problems.LinearSystem) – Linear system to be solved.
prior (probnum.linalg.solvers.beliefs.LinearSystemBelief) – Prior belief over the quantities of interest of the linear system.
Attributes Summary
Action of the solver for the current step.
Actions taken by the solver.
Belief over the quantities of interest of the linear system.
Observation of the solver for the current step.
Observations of the problem by the solver.
Prior belief over the quantities of interest of the linear system.
Linear system to be solved.
Residual \(r_{i} = b - Ax_{i}\).
Residuals \(\{b - Ax_i\}_i\).
Current step of the solver.
Methods Summary
Advance the solver state to the next solver step.
Attributes Documentation
- action¶
Action of the solver for the current step.
Is
None
at the beginning of a step and will be set by the policy.
- actions¶
Actions taken by the solver.
- belief¶
Belief over the quantities of interest of the linear system.
- observation¶
Observation of the solver for the current step.
Is
None
at the beginning of a step, will be set by the observation model for a given action.
- observations¶
Observations of the problem by the solver.
- prior¶
Prior belief over the quantities of interest of the linear system.
- problem¶
Linear system to be solved.
- residual¶
Residual \(r_{i} = b - Ax_{i}\).
- residuals¶
Residuals \(\{b - Ax_i\}_i\).
- step¶
Current step of the solver.
Methods Documentation