# RandomUnitVectorPolicy¶

class probnum.linalg.solvers.policies.RandomUnitVectorPolicy

Policy returning randomly drawn standard unit vectors.

Draw a standard unit vector $$e_i$$ at random and return it. This policy corresponds to selecting columns of the matrix as observations.

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

ndarray