From 09334ed9f9c352ad99f99b7880b9c963c071692b Mon Sep 17 00:00:00 2001 From: jiri Date: Mon, 2 Jun 2008 16:15:55 +0000 Subject: [PATCH] *** empty log message *** --- fourindex.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/fourindex.h b/fourindex.h index 643901f..5d19c69 100644 --- a/fourindex.h +++ b/fourindex.h @@ -772,6 +772,12 @@ if (!NRMat::v) laerror("access to unallocated fourindex_dense"); #endif return (*this).NRMat::operator() ((j-1)*noca+i-1,(b-1)*nvra+a-1); } + + void print(ostream &out) const + { + unsigned int i,j,a,b; + for(i=1; i<=noca; ++i) for(j=1; j<=nocb; ++j) for(a=1; a<=nvra; ++a) for(b=1; b<=nvrb; ++b) out << i<<" "<