Struct sector

Struct Documentation

struct sector

represents a sector of the Hilbert space

Public Functions

inline sector()
inline sector(int _N, int _S, size_t _irrep)
inline int Nup() const
inline int Ndw() const
inline sector(const string &str)

constructor from a string

inline string name() const

Public Members

int N

the total number of particles in the sector (N_1 + N_2). = even or odd is particle number is not conserved

int S

the total spin in the sector (N_1 - N_2). = even or odd if spin is not conserved.

size_t irrep

the label of the point group representation used (from 0 to g-1)

Public Static Attributes

static const int odd = 9999

value of N or S if not conserved but odd

static const int even = 10000

value of N or S if not conserved but even

Friends

inline friend std::ostream &operator<<(std::ostream &flux, const sector &s)
inline friend std::istream &operator>>(std::istream &flux, sector &s)