Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GP_DFFTPACK_H
00029 #define GP_DFFTPACK_H
00030
00031 #include "FastFourierTransform.h"
00032
00033 namespace GeopsyCore {
00034
00035 #ifndef NO_FFT
00036
00037
00038
00039
00040 extern "C" void dffti_(long * n, double * wsave);
00041 extern "C" void dfftf_(long * n, double * r, double * wsave);
00042 extern "C" void dfftb_(long * n, double * r, double * wsave);
00043
00044
00045
00046 extern "C" void rffti1_(long * n, const double * wa, const double * ifac);
00047 extern "C" void rfftf1_(long * n, double * r, double * ch, const double * wa, const double * ifac);
00048 extern "C" void rfftb1_(long * n, double * r, double * ch, const double * wa, const double * ifac);
00049
00050
00051 extern "C" void zffti_(long * n, double * wsave);
00052 extern "C" void zfftf_(long * n, QGpCoreTools::Complex * c, double * wsave);
00053 extern "C" void zfftb_(long * n, QGpCoreTools::Complex * c, double * wsave);
00054
00055
00056
00057 extern "C" void cffti1_(long * n, const double * wa, const double * ifac);
00058 extern "C" void cfftf1_(long * n, QGpCoreTools::Complex * r, double * ch, const double * wa, const double * ifac);
00059 extern "C" void cfftb1_(long * n, QGpCoreTools::Complex * r, double * ch, const double * wa, const double * ifac);
00060
00061 class DFFTPack : public FastFourierTransform
00062 {
00063 public:
00064 virtual void forward(int nSamples, double * samples);
00065 virtual void backward(int nSamples, double * samples);
00066
00067 virtual void forward(int nSamples, Complex * samples);
00068 virtual void backward(int nSamples, Complex * samples);
00069
00070 virtual void manyForward(int howmany, int nSamples, Complex * samples);
00071 virtual void manyBackward(int howmany, int nSamples, Complex * samples);
00072 };
00073
00074 #endif // NO_FFT
00075
00076 }
00077
00078 #endif // DFFTPACK_H