Changeset 3921 in Sophya


Ignore:
Timestamp:
Dec 3, 2010, 10:34:23 PM (15 years ago)
Author:
ansari
Message:

tentative d'optimisation du calcul des visibilites, reza 03/12/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brviscalc.cc

    r3920 r3921  
    415415      if (kpair>=(pairst_+nbpairs_+1))  break;
    416416      if (fgpimp_&&(i!=j)&&((i+j)%2==0))  continue;  // calcul des visib avec numero pair-impair + autocorrel
    417       TVector< complex<r_4> > vis = vismtx_.Row(k);  k++;   
     417      TVector< complex<r_4> > vis = vismtx_.Row(k);  k++;
     418      TwoByteComplex* zv1=vpdata_[i];
     419      TwoByteComplex* zv2=vpdata_[j];
     420      for(sa_size_t f=1; f<vis.Size(); f++) {
     421        vis(f) += complex<r_4>((r_4)zv1->realB(), (r_4)zv1->imagB()) *
     422          complex<r_4>((r_4)zv2->realB(), -(r_4)zv2->imagB());
     423        zv1++;  zv2++;
     424      }
     425      /*     
    418426      for(sa_size_t f=1; f<vis.Size(); f++) {
    419427        vis(f) += complex<r_4>((r_4)vpdata_[i][f].realB(), (r_4)vpdata_[i][f].imagB()) *
    420428          complex<r_4>((r_4)vpdata_[j][f].realB(), -(r_4)vpdata_[j][f].imagB());
    421429      }
     430      */
    422431      nb_flop_ += (8.*(r_8)(vis.Size()-1));
    423432    }
Note: See TracChangeset for help on using the changeset viewer.