Template Function LanczosGreen¶
Defined in File Lanczos.hpp
Function Documentation¶
-
template<typename T, typename HilbertField>
pair<vector<double>, vector<double>> LanczosGreen(T &H, vector<HilbertField> &psi, bool verb = false)¶ Implementation of the Lanczos method for the Green function.
Performs a Lanczos procedure on the vector psi and thus calculates the coefficients of the tridiagonal matrix: alpha and beta. Used in calculating Green function in the continued fraction representation
- Parameters:
H – pointer (cast to void) to the struct object to which the multiply-add routine belongs
psi – [in] starting vector (provided on input).