Template Function PRIMME_state_solver¶
Defined in File PRIMME_solver.hpp
Function Documentation¶
-
template<typename T, typename HilbertField>
void PRIMME_state_solver(T *H, const size_t &dim, const size_t numEvals, std::vector<double> &evals, std::vector<std::vector<HilbertField>> &evecs, const bool verb = false)¶ Compute the lowest eigenpair(s) of the Hamiltonian using PRIMME eigensolver.
The number of requested eigenpairs is given by numEvals. evals and evecs must be pre-sized to numEvals; evecs[0] is used as the initial guess.