Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

options.h

00001 /*****************************************************************************/
00002 /* options.h                                                                 */
00003 /* options for the direct and fast computation of the NDFT                   */
00004 /*                                                                           */
00005 /* authors: D. Potts                                                         */
00006 /*      S. Kunis 2002                                                    */
00007 /*****************************************************************************/
00008 
00011 #define KAISER_BESSEL
00012                                         /* one of KAISER_BESSEL,SINC_POWER   */
00013           /* B_SPLINE,GAUSSIAN,                */
00014 
00017 /*#define MEASURE_TIME*/
00018                                         /* measure time for the deconvolution
00019                                            and convolution/evaluation step   */
00020 /*#define MEASURE_TIME_FFTW*/
00021                                         /* the same for the fftw step        */
00022 
00023 
00030 #ifdef MEASURE_TIME
00031  int MEASURE_TIME_r;
00032  double MEASURE_TIME_tt;
00033 
00034 #define TIC(a)                                                                \
00035   ths->MEASURE_TIME_t[(a)]=0;                                                 \
00036   MEASURE_TIME_r=0;                                                           \
00037   while(ths->MEASURE_TIME_t[(a)]<0.01)                                        \
00038     {                                                                         \
00039       MEASURE_TIME_r++;                                                       \
00040       MEASURE_TIME_tt=second();                                               \
00041 
00042 /* THE MEASURED FUNCTION IS CALLED REPEATEDLY */
00043 
00044 #define TOC(a)                                                                \
00045       MEASURE_TIME_tt=second()-MEASURE_TIME_tt;                               \
00046       ths->MEASURE_TIME_t[(a)]+=MEASURE_TIME_tt;                              \
00047     }                                                                         \
00048   ths->MEASURE_TIME_t[(a)]/=MEASURE_TIME_r;                                   \
00049 
00050 #else
00051 #define TIC(a)
00052 #define TOC(a)
00053 #endif
00054 
00055 #ifdef MEASURE_TIME_FFTW
00056 #define TIC_FFTW(a) TIC(a)
00057 #define TOC_FFTW(a) TOC(a)
00058 #else
00059 #define TIC_FFTW(a)
00060 #define TOC_FFTW(a)
00061 #endif
00062 
00063 /* options.h */

Generated on Wed May 10 20:39:39 2006 for NFFT by  doxygen 1.4.4