#include <TwoIndex.h>
|
| | TwoIndex (const int nGroup, const int *IrrepSizes) |
| | Constructor. More...
|
| |
| | TwoIndex (const TwoIndex &) |
| |
| virtual | ~TwoIndex () |
| | Destructor. More...
|
| |
| void | set (const int irrep, const int i, const int j, const double val) |
| | Set an element. More...
|
| |
| double | get (const int irrep, const int i, const int j) const |
| | Get an element. More...
|
| |
| void | save (const std::string name) const |
| | Save the TwoIndex object. More...
|
| |
| void | save2 (const std::string name) const |
| |
| void | read (const std::string name) |
| | Load the TwoIndex object. More...
|
| |
| void | read2 (const std::string name) |
| |
| void | reset () |
| | set everything to zero More...
|
| |
| | TwoIndex (const int nGroup, const int *IrrepSizes) |
| | Constructor. More...
|
| |
| | TwoIndex (const TwoIndex &) |
| |
| virtual | ~TwoIndex () |
| | Destructor. More...
|
| |
| void | set (const int irrep, const int i, const int j, const double val) |
| | Set an element. More...
|
| |
| double | get (const int irrep, const int i, const int j) const |
| | Get an element. More...
|
| |
| void | save (const std::string name) const |
| | Save the TwoIndex object. More...
|
| |
| void | save2 (const std::string name) const |
| |
| void | read (const std::string name) |
| | Load the TwoIndex object. More...
|
| |
| void | read2 (const std::string name) |
| |
| void | reset () |
| | set everything to zero More...
|
| |
TwoIndex class.
- Author
- Sebastian Wouters sebas.nosp@m.tian.nosp@m.woute.nosp@m.rs@g.nosp@m.mail..nosp@m.com
- Date
- February 8, 2013
Container class for symmetric two-index tensors with Abelian point group symmetry (real character table; see Irreps.h): 1DMs and 1-particle matrix elements.
Definition at line 32 of file TwoIndex.h.
| CheMPS2::TwoIndex::TwoIndex |
( |
const int |
nGroup, |
|
|
const int * |
IrrepSizes |
|
) |
| |
Constructor.
- Parameters
-
| nGroup | The symmetry group number (see Irreps.h) |
| IrrepSizes | Array with length the number of irreps of the specified group, containing the number of orbitals of that irrep |
Definition at line 32 of file TwoIndex.cpp.
| CheMPS2::TwoIndex::TwoIndex |
( |
const TwoIndex & |
orig | ) |
|
| CheMPS2::TwoIndex::~TwoIndex |
( |
| ) |
|
|
virtual |
| CheMPS2::TwoIndex::TwoIndex |
( |
const int |
nGroup, |
|
|
const int * |
IrrepSizes |
|
) |
| |
Constructor.
- Parameters
-
| nGroup | The symmetry group number (see Irreps.h) |
| IrrepSizes | Array with length the number of irreps of the specified group, containing the number of orbitals of that irrep |
| CheMPS2::TwoIndex::TwoIndex |
( |
const TwoIndex & |
| ) |
|
| virtual CheMPS2::TwoIndex::~TwoIndex |
( |
| ) |
|
|
virtual |
| double CheMPS2::TwoIndex::get |
( |
const int |
irrep, |
|
|
const int |
i, |
|
|
const int |
j |
|
) |
| const |
Get an element.
- Parameters
-
| irrep | The irrep number (see Irreps.h) |
| i | The first index (within the symmetry block) |
| j | The second index (within the symmetry block) |
- Returns
- The value of the matrix element
Definition at line 79 of file TwoIndex.cpp.
| double CheMPS2::TwoIndex::get |
( |
const int |
irrep, |
|
|
const int |
i, |
|
|
const int |
j |
|
) |
| const |
Get an element.
- Parameters
-
| irrep | The irrep number (see Irreps.h) |
| i | The first index (within the symmetry block) |
| j | The second index (within the symmetry block) |
- Returns
- The value of the matrix element
| void CheMPS2::TwoIndex::read |
( |
const std::string |
name | ) |
|
| void CheMPS2::TwoIndex::read |
( |
const std::string |
name | ) |
|
| void CheMPS2::TwoIndex::read2 |
( |
const std::string |
name | ) |
|
| void CheMPS2::TwoIndex::read2 |
( |
const std::string |
name | ) |
|
| void CheMPS2::TwoIndex::reset |
( |
| ) |
|
| void CheMPS2::TwoIndex::reset |
( |
| ) |
|
| void CheMPS2::TwoIndex::save |
( |
const std::string |
name | ) |
const |
| void CheMPS2::TwoIndex::save |
( |
const std::string |
name | ) |
const |
| void CheMPS2::TwoIndex::save2 |
( |
const std::string |
name | ) |
const |
| void CheMPS2::TwoIndex::save2 |
( |
const std::string |
name | ) |
const |
| void CheMPS2::TwoIndex::set |
( |
const int |
irrep, |
|
|
const int |
i, |
|
|
const int |
j, |
|
|
const double |
val |
|
) |
| |
Set an element.
- Parameters
-
| irrep | The irrep number (see Irreps.h) |
| i | The first index (within the symmetry block) |
| j | The second index (within the symmetry block) |
| val | The value to which the element of the matrix should be set |
| void CheMPS2::TwoIndex::set |
( |
const int |
irrep, |
|
|
const int |
i, |
|
|
const int |
j, |
|
|
const double |
val |
|
) |
| |
Set an element.
- Parameters
-
| irrep | The irrep number (see Irreps.h) |
| i | The first index (within the symmetry block) |
| j | The second index (within the symmetry block) |
| val | The value to which the element of the matrix should be set |
Definition at line 72 of file TwoIndex.cpp.
The documentation for this class was generated from the following files: