HubbardGPU
Hubbard diagonalisation on the GPU (and CPU)
|
#include <helpers.h>
Public Member Functions | |
KBlock (const KBlock &) | |
KBlock (KBlock &&) | |
virtual | ~KBlock () |
myint | getUp (int index) const |
myint | getDown (int index) const |
int | getdim () const |
int | getK () const |
int | getL () const |
const std::pair< myint, myint > & | operator[] (int index) const |
void | Print () const |
Private Member Functions | |
KBlock (int K, int L, int Nu, int Nd) | |
Private Attributes | |
int | L |
int | K |
int | Nu |
int | Nd |
std::vector< std::pair< myint, myint > > | basis |
Friends | |
class | MomBasis |
Stores a single K block basis. Only has a public copy constructor. The MomBasis class is a friend and can make this classes after building a full momentum basis. We build these blocks once and refer everywhere to those objects then.
KBlock::KBlock | ( | const KBlock & | orig | ) |
Definition at line 222 of file helpers.cpp.
KBlock::KBlock | ( | KBlock && | orig | ) |
Definition at line 232 of file helpers.cpp.
|
private |
K | the K value |
L | chain length |
Nu | number of up electrons |
Nd | number of down electrons |
Definition at line 214 of file helpers.cpp.
int KBlock::getdim | ( | ) | const |
myint KBlock::getDown | ( | int | index | ) | const |
int KBlock::getK | ( | ) | const |
Definition at line 259 of file helpers.cpp.
int KBlock::getL | ( | ) | const |
Definition at line 264 of file helpers.cpp.
myint KBlock::getUp | ( | int | index | ) | const |
Get a basisstate with index
index | the index of the requested basisstate |
Definition at line 274 of file helpers.cpp.
void KBlock::Print | ( | ) | const |