Ignore:
Timestamp:
Jul 3, 2006, 1:04:51 PM (19 years ago)
Author:
ansari
Message:

Suppression const des arguments FFTForward/Backward + adaptation de Toeplitz, cmv+Reza 03/07/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/toeplitzMatrix.h

    r2908 r3002  
    7979
    8080
     81// Reza+CMV du 3/7/2006 : on a instancie le FFTPackServer avec le flag preserveinput=true
     82// On peut donc faire en principe les const_cast sans danger
    8183inline void transformeeFourier(const TVector<complex<double> >& v, TVector< complex<double> >& tv) const
    8284{
    83   fftIntfPtr_-> FFTForward(v, tv);
     85  fftIntfPtr_-> FFTForward(const_cast<TVector<complex<double> > & >(v), tv);
    8486}
    8587inline void transformeeFourier(const TVector<double>& v, TVector< complex<double> >& tv) const
    8688{
    87   fftIntfPtr_-> FFTForward(v, tv);
     89  fftIntfPtr_-> FFTForward(const_cast<TVector<double> & >(v), tv);
    8890}
    8991
     
    9294{
    9395  int n= tv.Size();
    94   fftIntfPtr_-> FFTBackward(tv, v);
     96  fftIntfPtr_-> FFTBackward(const_cast<TVector<complex<double> > & >(tv), v);
    9597  v/=n;
    9698}
     
    98100{
    99101  int n= tv.Size();
    100   fftIntfPtr_-> FFTBackward(tv, v);
     102  fftIntfPtr_-> FFTBackward(const_cast< TVector<complex<double> > & >(tv), v);
    101103  double fac = 1./(2*(n-1));
    102104  v *= fac;
Note: See TracChangeset for help on using the changeset viewer.