Template Class Hamiltonian_Factorized

Inheritance Relationships

Base Type

Class Documentation

template<typename HilbertField>
class Hamiltonian_Factorized : public Hamiltonian<HilbertField>

Public Functions

Hamiltonian_Factorized(shared_ptr<model> the_model, const map<string, double> &value, sector _sec)
virtual void mult_add(vector<HilbertField> &x, vector<HilbertField> &y)

Applies the Hamiltonian: y = y +H.x.

Parameters:
  • y – vector to which H.x is added to

  • x – input vector

virtual void diag(vector<double> &d)

provides the diagonal d of H Used by the Davidson method

Parameters:

d – the diagonal of H (pre-allocated)