EigenvectorPolicy

class itergp.methods.policies.EigenvectorPolicy(descending=True)

Bases: LinearSolverPolicy

Eigenvector policy.

Policy returning eigenvectors of the system matrix.

Parameters

descending (bool) – Whether to return eigenvectors in descending or ascending order of eigenvalues.

Return type

None

Attributes Summary

descending

Whether the returned eigenvectors are returned in descending or ascending order of the eigenvalues.

Methods Summary

__call__(solver_state, rng)

Return an action for a given solver state.

Attributes Documentation

descending

Whether the returned eigenvectors are returned in descending or ascending order of the eigenvalues.

Methods Documentation

__call__(solver_state, rng)[source]

Return an action for a given solver state.

Parameters
Returns

Next action to take.

Return type

action