Changeset 3002 in Sophya for trunk/SophyaLib/NTools/toeplitzMatrix.h
- Timestamp:
- Jul 3, 2006, 1:04:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/toeplitzMatrix.h
r2908 r3002 79 79 80 80 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 81 83 inline void transformeeFourier(const TVector<complex<double> >& v, TVector< complex<double> >& tv) const 82 84 { 83 fftIntfPtr_-> FFTForward( v, tv);85 fftIntfPtr_-> FFTForward(const_cast<TVector<complex<double> > & >(v), tv); 84 86 } 85 87 inline void transformeeFourier(const TVector<double>& v, TVector< complex<double> >& tv) const 86 88 { 87 fftIntfPtr_-> FFTForward( v, tv);89 fftIntfPtr_-> FFTForward(const_cast<TVector<double> & >(v), tv); 88 90 } 89 91 … … 92 94 { 93 95 int n= tv.Size(); 94 fftIntfPtr_-> FFTBackward( tv, v);96 fftIntfPtr_-> FFTBackward(const_cast<TVector<complex<double> > & >(tv), v); 95 97 v/=n; 96 98 } … … 98 100 { 99 101 int n= tv.Size(); 100 fftIntfPtr_-> FFTBackward( tv, v);102 fftIntfPtr_-> FFTBackward(const_cast< TVector<complex<double> > & >(tv), v); 101 103 double fac = 1./(2*(n-1)); 102 104 v *= fac;
Note:
See TracChangeset
for help on using the changeset viewer.