diff --git a/fourindex.h b/fourindex.h index d759769..00d9445 100644 --- a/fourindex.h +++ b/fourindex.h @@ -690,6 +690,7 @@ private: unsigned int noca,nocb,nvra,nvrb; public: fourindex_dense(): NRMat() {noca=nocb=nvra=nvrb=0;}; + void resize(const int nocca, const int noccb, const int nvrta, const int nvrtb) {noca=nocca; nocb=noccb; nvra=nvrta; nvrb=nvrtb; (*this).NRMat::resize(nocca*noccb,nvrta*nvrtb);}; explicit fourindex_dense(const int nocca, const int noccb, const int nvrta, const int nvrtb): NRMat(nocca*noccb,nvrta*nvrtb) {noca=nocca; nocb=noccb; nvra=nvrta; nvrb=nvrtb;}; //here i,a are alpha j,b beta