From a5015f5c3c84831a3af7e52a8a2d59f6a99f7cc1 Mon Sep 17 00:00:00 2001 From: jiri Date: Thu, 8 Dec 2005 13:03:07 +0000 Subject: [PATCH] *** empty log message *** --- fourindex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fourindex.h b/fourindex.h index 2a1f65c..02451d3 100644 --- a/fourindex.h +++ b/fourindex.h @@ -81,6 +81,7 @@ public: my.index.packed[i] = p->index.packed[fourindex_permutations[symmetry][permindex][i]]; my.elem = p->elem * fourindex_permutations[symmetry][permindex][4]; //now treat the redundancy by possibly equal indices + //if the processing of individual term becomes very costly, an alternative would be to screen permutations yielding identical result switch(symmetry) { case twoelectronrealmullikan: @@ -109,9 +110,11 @@ public: piterator operator++(int) {laerror("postincrement not possible on permute-iterator");} bool operator==(const piterator &rhs) const {return p==rhs.p && (!p || permindex==rhs.permindex);} bool operator!=(const piterator &rhs) const {return p!=rhs.p || p && rhs.p && permindex!=rhs.permindex;} + bool end(void) {return !p;} + bool notend(void) {return p;} }; piterator pbegin() const {return piterator(*this);} - piterator pend() const {return piterator(NULL);} + piterator pend() const {return piterator(NULL);}//deprecated, inefficient //constructors etc. inline fourindex() :nn(0),count(NULL),list(NULL) {};