mirtorch.alg.power_iter
- mirtorch.alg.power_iter(A, x0, max_iter=100, tol=1e-06, alert=True)
Use power iteration to calculate the spectral norm of a LinearMap.
- Parameters:
A – a LinearMap
max_iter – maximum number of iterations
tol – stopping tolerance
x0 – initial guess of singular vector corresponding to max singular value
- Returns:
The spectral norm (x) and the principal right singular vector (sig1)