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
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef _COMPLEXFFT_H
00042 #define _COMPLEXFFT_H
00043
00044 #include <lal/LALDatatypes.h>
00045
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #pragma }
00049 #endif
00050
00051 NRCSID( COMPLEXFFTH, "$Id: ComplexFFT.h,v 1.13 2007/06/08 14:41:44 bema Exp $" );
00052
00053
00054
00055
00056
00057
00058 #define COMPLEXFFTH_ENULL 1
00059 #define COMPLEXFFTH_ENNUL 2
00060 #define COMPLEXFFTH_ESIZE 4
00061 #define COMPLEXFFTH_ESZMM 8
00062 #define COMPLEXFFTH_ESLEN 16
00063 #define COMPLEXFFTH_ESAME 32
00064 #define COMPLEXFFTH_EALOC 64
00065 #define COMPLEXFFTH_EFFTW 128
00066 #define COMPLEXFFTH_ESNGL 256
00067 #define COMPLEXFFTH_EINTL 512
00068 #define COMPLEXFFTH_ESIGN 1024
00069
00070 #define COMPLEXFFTH_MSGENULL "Null pointer"
00071 #define COMPLEXFFTH_MSGENNUL "Non-null pointer"
00072 #define COMPLEXFFTH_MSGESIZE "Invalid input size"
00073 #define COMPLEXFFTH_MSGESZMM "Size mismatch"
00074 #define COMPLEXFFTH_MSGESLEN "Invalid/mismatched sequence lengths"
00075 #define COMPLEXFFTH_MSGESAME "Input/Output data vectors are the same"
00076 #define COMPLEXFFTH_MSGEFFTW "Error in FFTW"
00077 #define COMPLEXFFTH_MSGEALOC "Memory allocation failed"
00078 #define COMPLEXFFTH_MSGESNGL "FFTW library is not single-precision"
00079 #define COMPLEXFFTH_MSGEINTL "Error in Intel FFT library"
00080 #define COMPLEXFFTH_MSGESIGN "Unknown sign of transform in plan"
00081
00082
00083
00084
00085
00086
00087
00088
00089 typedef struct tagCOMPLEX8FFTPlan COMPLEX8FFTPlan;
00090 typedef struct tagCOMPLEX16FFTPlan COMPLEX16FFTPlan;
00091 #define tagComplexFFTPlan tagCOMPLEX8FFTPlan
00092 #define ComplexFFTPlan COMPLEX8FFTPlan
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 COMPLEX8FFTPlan * XLALCreateCOMPLEX8FFTPlan( UINT4 size, int fwdflg, int measurelvl );
00110 COMPLEX8FFTPlan * XLALCreateForwardCOMPLEX8FFTPlan( UINT4 size, int measurelvl );
00111 COMPLEX8FFTPlan * XLALCreateReverseCOMPLEX8FFTPlan( UINT4 size, int measurelvl );
00112 void XLALDestroyCOMPLEX8FFTPlan( COMPLEX8FFTPlan *plan );
00113 int XLALCOMPLEX8VectorFFT( COMPLEX8Vector *output, COMPLEX8Vector *input,
00114 COMPLEX8FFTPlan *plan );
00115
00116
00117
00118
00119
00120
00121
00122 COMPLEX16FFTPlan * XLALCreateCOMPLEX16FFTPlan( UINT4 size, int fwdflg, int measurelvl );
00123 COMPLEX16FFTPlan * XLALCreateForwardCOMPLEX16FFTPlan( UINT4 size, int measurelvl );
00124 COMPLEX16FFTPlan * XLALCreateReverseCOMPLEX16FFTPlan( UINT4 size, int measurelvl );
00125 void XLALDestroyCOMPLEX16FFTPlan( COMPLEX16FFTPlan *plan );
00126 int XLALCOMPLEX16VectorFFT( COMPLEX16Vector *output, COMPLEX16Vector *input,
00127 COMPLEX16FFTPlan *plan );
00128
00129
00130
00131
00132
00133
00134
00135 void
00136 LALCreateForwardCOMPLEX8FFTPlan(
00137 LALStatus *status,
00138 COMPLEX8FFTPlan **plan,
00139 UINT4 size,
00140 INT4 measure
00141 );
00142 #define LALCreateForwardComplexFFTPlan LALCreateForwardCOMPLEX8FFTPlan
00143
00144 void
00145 LALCreateReverseCOMPLEX8FFTPlan(
00146 LALStatus *status,
00147 COMPLEX8FFTPlan **plan,
00148 UINT4 size,
00149 INT4 measure
00150 );
00151 #define LALCreateReverseComplexFFTPlan LALCreateReverseCOMPLEX8FFTPlan
00152
00153 void
00154 LALDestroyCOMPLEX8FFTPlan (
00155 LALStatus *status,
00156 COMPLEX8FFTPlan **plan
00157 );
00158 #define LALDestroyComplexFFTPlan LALDestroyCOMPLEX8FFTPlan
00159
00160 void
00161 LALCOMPLEX8VectorFFT (
00162 LALStatus *status,
00163 COMPLEX8Vector *output,
00164 COMPLEX8Vector *input,
00165 COMPLEX8FFTPlan *plan
00166 );
00167
00168
00169
00170
00171
00172
00173
00174 void
00175 LALCreateForwardCOMPLEX16FFTPlan(
00176 LALStatus *status,
00177 COMPLEX16FFTPlan **plan,
00178 UINT4 size,
00179 INT4 measure
00180 );
00181
00182 void
00183 LALCreateReverseCOMPLEX16FFTPlan(
00184 LALStatus *status,
00185 COMPLEX16FFTPlan **plan,
00186 UINT4 size,
00187 INT4 measure
00188 );
00189
00190 void
00191 LALDestroyCOMPLEX16FFTPlan (
00192 LALStatus *status,
00193 COMPLEX16FFTPlan **plan
00194 );
00195
00196 void
00197 LALCOMPLEX16VectorFFT (
00198 LALStatus *status,
00199 COMPLEX16Vector *output,
00200 COMPLEX16Vector *input,
00201 COMPLEX16FFTPlan *plan
00202 );
00203
00204
00205 #ifdef __cplusplus
00206 #pragma {
00207 }
00208 #endif
00209
00210 #endif