Skip to content

num::rayleigh_iteration

Defined in header <linear/eigen/power.hpp>

power_result rayleigh_iteration(const mat<real> &A, const vec<real> &x0,
                                real tol = 1e-10, idx max_iter = 50);

Compute an eigenpair by Rayleigh quotient iteration, with shift \(\sigma_k = v_k^T A v_k\).

Notes

Refactors \(A - \sigma_k I\) at every step.