20 #ifndef DMRGSCFMATRIX_CHEMPS2_H 21 #define DMRGSCFMATRIX_CHEMPS2_H 23 #include "DMRGSCFindices.h" 54 void set(
const int irrep,
const int p,
const int q,
const double val );
61 double get(
const int irrep,
const int p,
const int q )
const;
66 double *
getBlock(
const int irrep );
83 static void read(
const string filename,
const int n_irreps,
double ** storage );
85 #ifdef CHEMPS2_MPI_COMPILATION 88 void broadcast(
const int ROOT );
double * getBlock(const int irrep)
Get a matrix block.
const DMRGSCFindices * iHandler
The information on the occupied, active, and virtual spaces.
static void read(const string filename, const int n_irreps, double **storage)
Read the DMRGSCFmatrix from disk.
double ** entries
The matrix entries.
static void write(const string filename, const DMRGSCFindices *idx, double **storage)
Write a DMRGSCFmatrix to disk.
double rms_deviation(const DMRGSCFmatrix *other) const
Get the RMS deviation with another DMRGSCFmatrix.
DMRGSCFmatrix(const DMRGSCFindices *iHandler)
Constructor.
int num_irreps
The number of irreps.
void identity()
Make this matrix the identity matrix.
void clear()
Clear the matrix.
virtual ~DMRGSCFmatrix()
Destructor.