20 #ifndef FOURINDEX_CHEMPS2_H 21 #define FOURINDEX_CHEMPS2_H 41 FourIndex(
const int nGroup,
const int * IrrepSizes);
59 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);
71 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);
82 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;
91 void save(
const std::string name)
const;
95 void read(
const std::string name);
97 #ifdef CHEMPS2_MPI_COMPILATION 100 void broadcast(
const int ROOT );
133 long long ***** storage;
136 long long calcNumberOfUniqueElements(
const bool allocateStorage);
139 long long arrayLength;
142 double * theElements;
145 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;
146 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;
147 long long getPtrAllOK1(
const int Icent,
const int irrep_i,
const int irrep_k,
const int i,
const int j,
const int k,
const int l)
const;
148 long long getPtrAllOK2(
const int Icent,
const int irrep_i,
const int irrep_k,
const int i,
const int j,
const int k,
const int l)
const;
149 long long getPtrAllOK5(
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.
void Clear()
Set all two-body matrix elements to zero.
virtual ~FourIndex()
Destructor.
int get_irrep_size(const int irrep) const
Get a given irrep size.
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.