| 1 | #ifndef FFTPServer_H_SEEN
|
|---|
| 2 | #define FFTPServer_H_SEEN
|
|---|
| 3 |
|
|---|
| 4 | #include "fftservintf.h"
|
|---|
| 5 |
|
|---|
| 6 | // implementation de FFTServerInterface en utilisant FFTPack
|
|---|
| 7 |
|
|---|
| 8 | namespace SOPHYA {
|
|---|
| 9 |
|
|---|
| 10 | class FFTPackServer : public FFTServerInterface {
|
|---|
| 11 | public:
|
|---|
| 12 | FFTPackServer();
|
|---|
| 13 | virtual ~FFTPackServer();
|
|---|
| 14 |
|
|---|
| 15 | // Implementation de l'interface FFTServerInterface
|
|---|
| 16 |
|
|---|
| 17 | virtual FFTServerInterface * Clone();
|
|---|
| 18 |
|
|---|
| 19 | // Transforme unidimensionnel sur des double
|
|---|
| 20 | virtual void FFTForward(TVector< complex<r_8> > const & in, TVector< complex<r_8> > & out);
|
|---|
| 21 | virtual void FFTBackward(TVector< complex<r_8> > const & in, TVector< complex<r_8> > & out);
|
|---|
| 22 | virtual void FFTForward(TVector< r_8 > const & in, TVector< complex<r_8> > & out);
|
|---|
| 23 | virtual void FFTBackward(TVector< complex<r_8> > const & in, TVector< r_8 > & out);
|
|---|
| 24 |
|
|---|
| 25 | // Transforme unidimensionnel sur des float
|
|---|
| 26 | virtual void FFTForward(TVector< complex<r_4> > const & in, TVector< complex<r_4> > & out);
|
|---|
| 27 | virtual void FFTBackward(TVector< complex<r_4> > const & in, TVector< complex<r_4> > & out);
|
|---|
| 28 | virtual void FFTForward(TVector< r_4 > const & in, TVector< complex<r_4> > & out);
|
|---|
| 29 | virtual void FFTBackward(TVector< complex<r_4> > const & in, TVector< r_4 > & out);
|
|---|
| 30 |
|
|---|
| 31 | // Methodes propres a cette classe
|
|---|
| 32 | virtual void fftf(int_4 l, float* inout);
|
|---|
| 33 | virtual void fftb(int_4 l, float* inout);
|
|---|
| 34 | virtual void fftf(int_4 l, double* inout);
|
|---|
| 35 | virtual void fftb(int_4 l, double* inout);
|
|---|
| 36 | virtual void fftf(int_4 l, complex<float>* inout);
|
|---|
| 37 | virtual void fftb(int_4 l, complex<float>* inout);
|
|---|
| 38 | virtual void fftf(int_4 l, complex<double>* inout);
|
|---|
| 39 | virtual void fftb(int_4 l, complex<double>* inout);
|
|---|
| 40 |
|
|---|
| 41 | // Methodes statiques pour reordonner les donnees
|
|---|
| 42 | virtual void ReShapetoReal( TVector< complex<r_8> > const & in, TVector< r_8 > & out);
|
|---|
| 43 | virtual void ReShapetoReal( TVector< complex<r_4> > const & in, TVector< r_4 > & out);
|
|---|
| 44 |
|
|---|
| 45 | virtual void ReShapetoCompl(TVector< r_8 > const & in, TVector< complex<r_8> > & out);
|
|---|
| 46 | virtual void ReShapetoCompl(TVector< r_4 > const & in, TVector< complex<r_4> > & out);
|
|---|
| 47 |
|
|---|
| 48 | protected:
|
|---|
| 49 | virtual void checkint_rfft(int_4 l);
|
|---|
| 50 | virtual void checkint_dfft(int_4 l);
|
|---|
| 51 | virtual void checkint_cfft(int_4 l);
|
|---|
| 52 | virtual void checkint_cdfft(int_4 l);
|
|---|
| 53 |
|
|---|
| 54 | int sz_rfft;
|
|---|
| 55 | r_4* ws_rfft;
|
|---|
| 56 |
|
|---|
| 57 | int sz_cfft;
|
|---|
| 58 | r_4* ws_cfft;
|
|---|
| 59 |
|
|---|
| 60 | int sz_dfft;
|
|---|
| 61 | r_8* ws_dfft;
|
|---|
| 62 |
|
|---|
| 63 | int sz_cdfft;
|
|---|
| 64 | r_8* ws_cdfft;
|
|---|
| 65 | };
|
|---|
| 66 |
|
|---|
| 67 | } // Fin du namespace
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | #endif
|
|---|