Skip to content

num::sqrt_lanczos

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

template <class Op>
requires spd_operator<Op, vec<real>>
lanczos_action_result sqrt_lanczos(const Op &A, const vec<real> &right_hand_side,
                                   real tolerance = 1e-8, idx max_steps = 0);

Compute \(A^{1/2} b\) by the Lanczos method, \(A\) SPD: \(A^{1/2} b \approx \|b\|_2 Q_m T_m^{1/2} e_1\).