CheMPS2
|
#include <DMRGSCFwtilde.h>
Public Member Functions | |
DMRGSCFwtilde (DMRGSCFindices *iHandler_in) | |
Constructor. More... | |
virtual | ~DMRGSCFwtilde () |
Destructor. | |
void | clear () |
Clear. | |
void | set (const int irrep_pq, const int irrep_rs, const int p, const int q, const int r, const int s, const double val) |
Set an element of w_tilde_pqrs. More... | |
double | get (const int irrep_pq, const int irrep_rs, const int p, const int q, const int r, const int s) const |
Get an element of w_tilde_pqrs. More... | |
double * | getBlock (const int irrep_pq, const int irrep_rs, const int p, const int r) |
Get the (pr) subblock of w_tilde_pqrs, which is stored as w_tilde[ I_pq ][ I_rs ][ p + ( Nocc[I_pq] + Ndmrg[I_pq] ) * r ][ q + Ntotal[I_pq] * s ]. More... | |
DMRGSCF w_tilde class.
Container class for the tensor . The definition and context can be found in CASSCF.h. For convenience, I repeat the definition of here (remember that and ):
Definition at line 43 of file DMRGSCFwtilde.h.
CheMPS2::DMRGSCFwtilde::DMRGSCFwtilde | ( | DMRGSCFindices * | iHandler_in | ) |
Constructor.
iHandler_in | The DMRGSCFindices which contain information on the occupied, active, and virtual spaces |
Definition at line 22 of file DMRGSCFwtilde.cpp.
double CheMPS2::DMRGSCFwtilde::get | ( | const int | irrep_pq, |
const int | irrep_rs, | ||
const int | p, | ||
const int | q, | ||
const int | r, | ||
const int | s | ||
) | const |
Get an element of w_tilde_pqrs.
irrep_pq | The irrep number of the first two indices pq |
irrep_rs | The irrep number of the last two indices rs |
p | The first index (within the symmetry block) |
q | The second index (within the symmetry block) |
r | The third index (within the symmetry block) |
s | The fourth index (within the symmetry block) |
Definition at line 86 of file DMRGSCFwtilde.cpp.
double * CheMPS2::DMRGSCFwtilde::getBlock | ( | const int | irrep_pq, |
const int | irrep_rs, | ||
const int | p, | ||
const int | r | ||
) |
Get the (pr) subblock of w_tilde_pqrs, which is stored as w_tilde[ I_pq ][ I_rs ][ p + ( Nocc[I_pq] + Ndmrg[I_pq] ) * r ][ q + Ntotal[I_pq] * s ].
irrep_pq | The irrep number of the first two indices pq |
irrep_rs | The irrep number of the last two indices rs |
p | The first index (within the symmetry block) |
r | The third index (within the symmetry block) |
Definition at line 92 of file DMRGSCFwtilde.cpp.
void CheMPS2::DMRGSCFwtilde::set | ( | const int | irrep_pq, |
const int | irrep_rs, | ||
const int | p, | ||
const int | q, | ||
const int | r, | ||
const int | s, | ||
const double | val | ||
) |
Set an element of w_tilde_pqrs.
irrep_pq | The irrep number of the first two indices pq |
irrep_rs | The irrep number of the last two indices rs |
p | The first index (within the symmetry block) |
q | The second index (within the symmetry block) |
r | The third index (within the symmetry block) |
s | The fourth index (within the symmetry block) |
val | The value to which the element of the tensor should be set |
Definition at line 80 of file DMRGSCFwtilde.cpp.