Ignore:
Timestamp:
Mar 1, 2000, 5:46:20 PM (26 years ago)
Author:
ansari
Message:

ajustement de type double r_8 etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/sphericaltransformserver.cc

    r729 r746  
    6363
    6464  // pour chaque tranche en theta
    65   for (int ith = 0; ith < map.NbThetaSlices();ith++)
     65  for (int_4 ith = 0; ith < map.NbThetaSlices();ith++)
    6666    {
    6767      int_4 nph;
     
    195195  //sortie.ReSize(nph);
    196196  TVector< complex<T> > sortie(nph);
    197   //  sortie.SetTemp(true);
     197  sortie.SetTemp(true);
    198198
    199199  fftIntfPtr_-> FFTBackward(data, sortie);
     
    274274  //sortie.ReSize(nph);
    275275  TVector<T> sortie;
    276   //  sortie.SetTemp(true);
     276  sortie.SetTemp(true);
    277277
    278278  fftIntfPtr_-> FFTBackward(data, sortie);
     
    295295  TVector< complex<T> > phase(nmmax+1);
    296296  Alm<T> alm;
    297   //  alm.SetTemp(true);
     297  alm.SetTemp(true);
    298298  alm.ReSizeToLmax(nlmax);
    299   //  cout << " nombre de tranches " << map.NbThetaSlices() << endl;
    300   for (int ith = 0; ith < map.NbThetaSlices(); ith++)
     299  for (int_4 ith = 0; ith < map.NbThetaSlices(); ith++)
    301300    {
    302301      int_4 nph;
     
    320319          // for(int kk=0; kk<nph; kk++) datain(kk)=complex<T>(data(kk),(T)0.);
    321320
    322           //  phase = CFromFourierAnalysis(nlmax,nmmax,datain,phi0);
    323           phase = CFromFourierAnalysis(nlmax,nmmax,data,phi0);
     321          //  phase = CFromFourierAnalysis(nmmax,datain,phi0);
     322          phase = CFromFourierAnalysis(nmmax,data,phi0);
    324323
    325324        }
     
    345344}
    346345template<class T>
    347 TVector< complex<T> > SphericalTransformServer<T>::CFromFourierAnalysis(int_4 nlmax,int_4 nmmax, const TVector<complex<T> >datain, r_8 phi0) const
     346TVector< complex<T> > SphericalTransformServer<T>::CFromFourierAnalysis(int_4 nmmax, const TVector<complex<T> >datain, r_8 phi0) const
    348347{
    349348  /*=======================================================================
     
    382381//&&&&&&&&& nouvelle version
    383382template<class T>
    384 TVector< complex<T> > SphericalTransformServer<T>::CFromFourierAnalysis(int_4 nlmax,int_4 nmmax, const TVector<T> datain, r_8 phi0) const
     383TVector< complex<T> > SphericalTransformServer<T>::CFromFourierAnalysis(int_4 nmmax, const TVector<T> datain, r_8 phi0) const
    385384{
    386385  //=======================================================================
     
    549548      throw SzMismatchError("SphericalTransformServer::DecomposeToAlm: map Q and map U have not same size ");
    550549    }
    551   for (int ith = 0; ith < mapq.NbThetaSlices(); ith++)
     550  for (int_4 ith = 0; ith < mapq.NbThetaSlices(); ith++)
    552551    {
    553552      int_4 nph;
     
    568567        {
    569568          //  almFromPM(nph, nlmax, nmmax, phi0, domega, theta, dataq, datau, alme, almb);
    570           almFromWX(nph, nlmax, nmmax, phi0, domega, theta, dataq, datau, alme, almb);
    571         }
    572     }
    573 }
    574 
    575 
    576 template<class T>
    577 void SphericalTransformServer<T>::almFromWX(int_4 nph, int_4 nlmax, int_4 nmmax,
     569          almFromWX(nlmax, nmmax, phi0, domega, theta, dataq, datau, alme, almb);
     570        }
     571    }
     572}
     573
     574
     575template<class T>
     576void SphericalTransformServer<T>::almFromWX(int_4 nlmax, int_4 nmmax,
    578577                                         r_8 phi0, r_8 domega,
    579578                                         r_8 theta,
     
    593592  //  for(int kk=0; kk<nph; kk++) datain(kk)=complex<T>(dataq(kk),0.);
    594593
    595   // phaseq = CFromFourierAnalysis(nlmax,nmmax,datain,phi0);
    596   phaseq = CFromFourierAnalysis(nlmax,nmmax,dataq,phi0);
     594  // phaseq = CFromFourierAnalysis(nmmax,datain,phi0);
     595  phaseq = CFromFourierAnalysis(nmmax,dataq,phi0);
    597596
    598597  // for(int kk=0; kk<nph; kk++) datain(kk)=complex<T>(datau(kk),0.);
    599598
    600599  // phaseu=  CFromFourierAnalysis(nlmax,nmmax,datain,phi0);
    601   phaseu=  CFromFourierAnalysis(nlmax,nmmax,datau,phi0);
     600  phaseu=  CFromFourierAnalysis(nmmax,datau,phi0);
    602601
    603602  LambdaWXBuilder lwxb(theta,nlmax,nmmax);
     
    644643  for(int kk=0; kk<nph; kk++) datain(kk)=complex<T>(dataq(kk),datau(kk));
    645644
    646   phasep = CFromFourierAnalysis(nlmax,nmmax,datain,phi0);
     645  phasep = CFromFourierAnalysis(nmmax,datain,phi0);
    647646
    648647  for(int kk=0; kk<nph; kk++) datain(kk)=complex<T>(dataq(kk),-datau(kk));
    649   phasem = CFromFourierAnalysis(nlmax,nmmax,datain,phi0);
     648  phasem = CFromFourierAnalysis(nmmax,datain,phi0);
    650649  LambdaPMBuilder lpmb(theta,nlmax,nmmax);
    651650         
     
    679678  Bm<complex<T> > b_m_theta_u(nmmax);
    680679
    681   for (int ith = 0; ith < mapq.NbThetaSlices();ith++)
     680  for (int_4 ith = 0; ith < mapq.NbThetaSlices();ith++)
    682681    {
    683682      int_4 nph;
     
    748747  Bm<complex<T> > b_m_theta_p(nmmax);
    749748  Bm<complex<T> > b_m_theta_m(nmmax);
    750   for (int ith = 0; ith < mapq.NbThetaSlices();ith++)
     749  for (int_4 ith = 0; ith < mapq.NbThetaSlices();ith++)
    751750    {
    752751      int_4 nph;
     
    834833{
    835834
    836   //  Alm<T> alm;
    837   //  almFromCl(alm, Cl, fwhm);
    838   //Alm<T> alm = almFromCl(Cl, fwhm);
    839835  Alm<T> alm(Cl, fwhm);
    840836  GenerateFromAlm(sph,pixelSizeIndex, alm );
     
    846842TVector<T>  SphericalTransformServer<T>::DecomposeToCl(const SphericalMap<T>& sph, int_4 nlmax, r_8 cos_theta_cut) const
    847843{
    848   //  Alm<T> alm;
    849   //  DecomposeToAlm( sph, alm,nlmax, cos_theta_cut);
    850844    Alm<T> alm=DecomposeToAlm( sph, nlmax, cos_theta_cut);
    851845  // power spectrum
Note: See TracChangeset for help on using the changeset viewer.