1 #ifndef QNANO_NEW_CDAGGERCDAGGERCC_ITERATOR_DEFINED_H 2 #define QNANO_NEW_CDAGGERCDAGGERCC_ITERATOR_DEFINED_H 4 #include "manybody/CdaggerC_Iterator.h" 26 int delta_counter, rank;
28 int n1, n2, m1, m2, n_max;
36 int get_n1()
const{
return n1; }
37 int get_n2()
const{
return n2; }
38 int get_m1()
const{
return m1; }
39 int get_m2()
const{
return m2; }
40 double get_sign()
const{
return sign; }
43 if(delta_counter<rank)
return it_delta.get_fi();
50 if(delta_counter<rank){
52 n2=m2=it_delta.get_fi()[delta_counter];
54 if(n2==it_delta.get_n())
return operator++();
55 sign=it_delta.get_sign();
64 if(it2.done())
return *
this;
65 it1.setup(it2.get_fi(),n_max);
71 sign=-it1.get_sign()*it2.get_sign();
72 if(m2==n2)
return operator++();
80 if(delta_counter<rank){
82 if(delta_counter>=rank){
85 if(it_delta.done())delta_counter=rank;
101 it_delta.setup(fi,n_max);
109 std::cerr<<
"CdaggerCdaggerCC_Iterator::constructor: n_max<rank"<<std::endl;
113 sign=it_delta.get_sign();
Definition: Fermion_Index.h:19
Definition: CdaggerC_Iterator.h:6
Definition: CdaggerCdaggerCC_Iterator.h:23