cagpjax.policies.base
Classes:
-
AbstractBatchLinearSolverPolicy–Abstract base class for policies that product action matrices.
-
AbstractLinearSolverPolicy–Abstract base class for all linear solver policies.
AbstractBatchLinearSolverPolicy
Bases: AbstractLinearSolverPolicy, ABC
Abstract base class for policies that product action matrices.
Methods:
-
to_actions–Compute all actions used to solve the linear system \(Ax=b\).
Attributes:
-
n_actions(int) –Number of actions in this policy.
to_actions
abstractmethod
Compute all actions used to solve the linear system \(Ax=b\).
For a matrix \(A\) with shape (n, n), the action matrix has shape
(n, n_actions).
Parameters:
-
(ALinearOperator) –Linear operator representing the linear system.
Returns:
-
LinearOperator–Linear operator representing the action matrix.
Source code in src/cagpjax/policies/base.py
AbstractLinearSolverPolicy
Bases: Module
Abstract base class for all linear solver policies.
Policies define actions used to solve a linear system \(A x = b\), where \(A\) is a square linear operator.