sigpy.alg.PowerMethod¶
-
class
sigpy.alg.
PowerMethod
(A, x, norm_func=None, max_iter=30)[source]¶ Power method to estimate maximum eigenvalue and eigenvector.
Parameters: - A (Linop or function) – Function to a hermitian linear mapping.
- x (array) – Variable to optimize over.
- max_iter (int) – Maximum number of iterations.
-
max_eig
¶ Maximum eigenvalue of A.
Type: float
-
__init__
(A, x, norm_func=None, max_iter=30)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(A, x[, norm_func, max_iter])Initialize self. done
()Return whether the algorithm is done. update
()Perform one update step.