Template Struct general_interaction_operator

Inheritance Relationships

Base Type

Struct Documentation

template<typename op_field>
struct general_interaction_operator : public Hermitian_operator

Public Functions

general_interaction_operator(const string &_name, shared_ptr<model> the_model, const vector<matrix_element<op_field>> &_elements)

Constructor from name and matrix elements.

Parameters:
  • _name – name of the operator

  • _the_model – model

  • _elements – nonzero one-body matrix elements

void check_spin_symmetry()

determines whether the operator is symmetric under the exchange of up and down spins

virtual double average_from_GF(matrix<Complex> &Gave, bool spin_down)
virtual shared_ptr<HS_Hermitian_operator> build_HS_operator(sector sec, bool complex_Hilbert_space)

returns a pointer to, and constructs the associated HS operator in the sector with basis B.

virtual string type()
virtual vector<matrix_element<Complex>> matrix_elements()

returns a list of complexified matrix elements.

Just a dummy program for interaction terms. Returns an empty list.

virtual void multiply_add_OTF(const vector<Complex> &x, vector<Complex> &y, double z, shared_ptr<ED_mixed_basis> B)
virtual void multiply_add_OTF(const vector<double> &x, vector<double> &y, double z, shared_ptr<ED_mixed_basis> B)
virtual void print(ostream &fout)

prints definition to a file

Parameters:

fout – output stream

virtual void set_hopping_matrix(double value, matrix<Complex> &tc, bool spin_down, int sys_mixing)
virtual void set_hopping_matrix(double value, matrix<double> &tc, bool spin_down, int sys_mixing)
virtual void set_target(vector<bool> &in_bath)

Public Members

vector<matrix_element<op_field>> elements

matrix elements