DOCI-Exact  1.0
CheMPS2::TwoIndex Class Reference

#include <TwoIndex.h>

Public Member Functions

 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

CheMPS2::TwoIndex::TwoIndex ( const int  nGroup,
const int *  IrrepSizes 
)

Constructor.

Parameters
nGroupThe symmetry group number (see Irreps.h)
IrrepSizesArray 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)

Definition at line 46 of file TwoIndex.cpp.

CheMPS2::TwoIndex::~TwoIndex ( )
virtual

Destructor.

Definition at line 64 of file TwoIndex.cpp.

CheMPS2::TwoIndex::TwoIndex ( const int  nGroup,
const int *  IrrepSizes 
)

Constructor.

Parameters
nGroupThe symmetry group number (see Irreps.h)
IrrepSizesArray 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

Destructor.

Member Function Documentation

double CheMPS2::TwoIndex::get ( const int  irrep,
const int  i,
const int  j 
) const

Get an element.

Parameters
irrepThe irrep number (see Irreps.h)
iThe first index (within the symmetry block)
jThe 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
irrepThe irrep number (see Irreps.h)
iThe first index (within the symmetry block)
jThe second index (within the symmetry block)
Returns
The value of the matrix element
void CheMPS2::TwoIndex::read ( const std::string  name)

Load the TwoIndex object.

Parameters
namefilename

Definition at line 148 of file TwoIndex.cpp.

void CheMPS2::TwoIndex::read ( const std::string  name)

Load the TwoIndex object.

Parameters
namefilename
void CheMPS2::TwoIndex::read2 ( const std::string  name)
void CheMPS2::TwoIndex::read2 ( const std::string  name)

Definition at line 273 of file TwoIndex.cpp.

void CheMPS2::TwoIndex::reset ( )

set everything to zero

void CheMPS2::TwoIndex::reset ( )

set everything to zero

Definition at line 331 of file TwoIndex.cpp.

void CheMPS2::TwoIndex::save ( const std::string  name) const

Save the TwoIndex object.

Parameters
namefilename
void CheMPS2::TwoIndex::save ( const std::string  name) const

Save the TwoIndex object.

Parameters
namefilename

Definition at line 86 of file TwoIndex.cpp.

void CheMPS2::TwoIndex::save2 ( const std::string  name) const

Definition at line 208 of file TwoIndex.cpp.

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
irrepThe irrep number (see Irreps.h)
iThe first index (within the symmetry block)
jThe second index (within the symmetry block)
valThe 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
irrepThe irrep number (see Irreps.h)
iThe first index (within the symmetry block)
jThe second index (within the symmetry block)
valThe 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: