![]() |
CheMPS2
|
#include <DMRGSCFmatrix.h>
Inheritance diagram for CheMPS2::DMRGSCFmatrix:
Collaboration diagram for CheMPS2::DMRGSCFmatrix:Public Member Functions | |
| DMRGSCFmatrix (const DMRGSCFindices *iHandler) | |
| Constructor. More... | |
| virtual | ~DMRGSCFmatrix () |
| Destructor. | |
| void | clear () |
| Clear the matrix. | |
| void | identity () |
| Make this matrix the identity matrix. | |
| void | set (const int irrep, const int p, const int q, const double val) |
| Set an element. More... | |
| double | get (const int irrep, const int p, const int q) const |
| Get an element. More... | |
| double * | getBlock (const int irrep) |
| Get a matrix block. More... | |
| double | rms_deviation (const DMRGSCFmatrix *other) const |
| Get the RMS deviation with another DMRGSCFmatrix. More... | |
Static Public Member Functions | |
| static void | write (const string filename, const DMRGSCFindices *idx, double **storage) |
| Write a DMRGSCFmatrix to disk. More... | |
| static void | read (const string filename, const int n_irreps, double **storage) |
| Read the DMRGSCFmatrix from disk. More... | |
Protected Attributes | |
| const DMRGSCFindices * | iHandler |
| The information on the occupied, active, and virtual spaces. | |
| double ** | entries |
| The matrix entries. | |
| int | num_irreps |
| The number of irreps. | |
DMRGSCFmatrix class.
Container class for DMRGSCF matrices which are blockdiagonal in the irreps.
Definition at line 32 of file DMRGSCFmatrix.h.
| CheMPS2::DMRGSCFmatrix::DMRGSCFmatrix | ( | const DMRGSCFindices * | iHandler | ) |
Constructor.
| iHandler | The DMRGSCFindices which contain information on the occupied, active, and virtual spaces |
Definition at line 30 of file DMRGSCFmatrix.cpp.
Here is the call graph for this function:| double CheMPS2::DMRGSCFmatrix::get | ( | const int | irrep, |
| const int | p, | ||
| const int | q | ||
| ) | const |
Get an element.
| irrep | The irrep number of the indices |
| p | The first index (within the symmetry block) |
| q | The second index (within the symmetry block) |
Definition at line 81 of file DMRGSCFmatrix.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| double * CheMPS2::DMRGSCFmatrix::getBlock | ( | const int | irrep | ) |
Get a matrix block.
| irrep | The irrep number of the matrix block |
Definition at line 87 of file DMRGSCFmatrix.cpp.
Here is the caller graph for this function:
|
static |
Read the DMRGSCFmatrix from disk.
| filename | Filename where the DMRGSCFmatrix is stored |
| n_irreps | The number of irreps for the symmetry group under consideration |
| storage | Where the entries of the DMRGSCFmatrix should be loaded to |
Definition at line 136 of file DMRGSCFmatrix.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| double CheMPS2::DMRGSCFmatrix::rms_deviation | ( | const DMRGSCFmatrix * | other | ) | const |
Get the RMS deviation with another DMRGSCFmatrix.
| other | DMRGSCFmatrix to compare to |
Definition at line 93 of file DMRGSCFmatrix.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void CheMPS2::DMRGSCFmatrix::set | ( | const int | irrep, |
| const int | p, | ||
| const int | q, | ||
| const double | val | ||
| ) |
Set an element.
| irrep | The irrep number of the indices |
| p | The first index (within the symmetry block) |
| q | The second index (within the symmetry block) |
| val | The value to which the element of the matrix should be set |
Definition at line 52 of file DMRGSCFmatrix.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Write a DMRGSCFmatrix to disk.
| filename | Filename to store the DMRGSCFmatrix to |
| idx | DMRGSCFindices which contain the number of orbitals per irrep |
| storage | Where the entries of the DMRGSCFmatrix are currently stored |
Definition at line 111 of file DMRGSCFmatrix.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: