20 #ifndef FOURINDEX_CHEMPS2_H
21 #define FOURINDEX_CHEMPS2_H
41 FourIndex(
const int nGroup,
const int * IrrepSizes);
58 void set(
const int irrep_i,
const int irrep_j,
const int irrep_k,
const int irrep_l,
const int i,
const int j,
const int k,
const int l,
const double val);
69 void add(
const int irrep_i,
const int irrep_j,
const int irrep_k,
const int irrep_l,
const int i,
const int j,
const int k,
const int l,
const double val);
80 double get(
const int irrep_i,
const int irrep_j,
const int irrep_k,
const int irrep_l,
const int i,
const int j,
const int k,
const int l)
const;
84 void save(
const std::string name)
const;
86 void save2(
const std::string name)
const;
90 void read(
const std::string name);
92 void read2(
const std::string name);
139 long long getPointer(
const int irrep_i,
const int irrep_j,
const int irrep_k,
const int irrep_l,
const int i,
const int j,
const int k,
const int l)
const;
140 long long getPtrIrrepOrderOK(
const int irrep_i,
const int irrep_j,
const int irrep_k,
const int irrep_l,
const int i,
const int j,
const int k,
const int l)
const;
141 long long getPtrAllOK(
const int number,
const int Icent,
const int irrep_i,
const int irrep_k,
const int i,
const int j,
const int k,
const int l)
const;
void save(const std::string name) const
Save the FourIndex object.
long long getPtrIrrepOrderOK(const int irrep_i, const int irrep_j, const int irrep_k, const int irrep_l, const int i, const int j, const int k, const int l) const
void save2(const std::string name) const
void read2(const std::string name)
void reset()
set everything to zero
long long calcNumberOfUniqueElements(const bool allocateStorage)
long long getPtrAllOK(const int number, const int Icent, const int irrep_i, const int irrep_k, const int i, const int j, const int k, const int l) const
virtual ~FourIndex()
Destructor.
void set(const int irrep_i, const int irrep_j, const int irrep_k, const int irrep_l, const int i, const int j, const int k, const int l, const double val)
Set an element.
long long getPointer(const int irrep_i, const int irrep_j, const int irrep_k, const int irrep_l, const int i, const int j, const int k, const int l) const
FourIndex(const int nGroup, const int *IrrepSizes)
Constructor.
void add(const int irrep_i, const int irrep_j, const int irrep_k, const int irrep_l, const int i, const int j, const int k, const int l, const double val)
Add a double to an element.
void read(const std::string name)
Load the FourIndex object.