#include <helpers.h>
Stores the actual Spinbasis as a linear combination of KBlock basis
Definition at line 311 of file helpers.h.
SpinBasis::SpinBasis |
( |
int |
L, |
|
|
int |
Nu, |
|
|
int |
Nd, |
|
|
BasisList & |
orig |
|
) |
| |
Store the spin basis
- Parameters
-
L | the length of the system |
Nu | number of up electrons |
Nd | number of down electrons |
orig | the BasisList from which to extract the basis. The BasisList will be empted after this |
Definition at line 970 of file helpers.cpp.
SpinBasis::SpinBasis |
( |
const char * |
filename | ) |
|
Read a SpinBasis from a file
- Parameters
-
filename | the name of the file to read |
Definition at line 1000 of file helpers.cpp.
virtual SpinBasis::~SpinBasis |
( |
| ) |
|
|
inlinevirtual |
const SubBasis & SpinBasis::getBlock |
( |
int |
index | ) |
const |
- Parameters
-
index | the number of the block |
- Returns
- the SubBasis block with index=index
Definition at line 1243 of file helpers.cpp.
std::pair< int, int > SpinBasis::getKS |
( |
int |
index | ) |
const |
Return the <K,S> pair belong to block with index index
- Parameters
-
index | the index of the block |
- Returns
- a pair with the quantum numbers K and S
Definition at line 1234 of file helpers.cpp.
int SpinBasis::getnumblocks |
( |
| ) |
const |
- Returns
- The number of blocks in the basis
Definition at line 1008 of file helpers.cpp.
void SpinBasis::ReadBasis |
( |
const char * |
filename | ) |
|
void SpinBasis::SaveBasis |
( |
const char * |
filename | ) |
const |
Save the basis to a HDF5 file
- Parameters
-
filename | the name of the file |
Definition at line 1017 of file helpers.cpp.
std::vector<class SubBasis> SpinBasis::basis |
|
private |
list of all the basis
Definition at line 337 of file helpers.h.
std::vector< std::pair<int,int> > SpinBasis::ind |
|
private |
keeps track which K and S belong to a subbasis
Definition at line 340 of file helpers.h.
number of down electrons
Definition at line 334 of file helpers.h.
number of up electrons
Definition at line 332 of file helpers.h.
The documentation for this class was generated from the following files: