Template Struct HS_half_operator

Struct Documentation

template<typename op_field>
struct HS_half_operator

Class HS_half_operator represents a tensor factor in a factorized one-body operator.

Represents a factor (up or down) of a factorizable one-body operator in a sector of the Hilbert space for up or down electrons

Public Functions

inline HS_half_operator(const vector<matrix_element<op_field>> &elements, shared_ptr<ED_halfbasis> B, bool spin_down)
inline void insert(uint32_t I, uint32_t J, op_field z)
inline void sort_elements()

Public Members

vector<pair<op_field, vector<pair<uint32_t, uint32_t>>>> v
vector<diagonal_matrix_element> diag_elem
uint32_t dim