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

api.h

Go to the documentation of this file.
00001 
00006 #ifndef API_H
00007 #define API_H
00008 
00009 #include "config.h"
00010 #include "nfft3.h"
00011 #include <fftw3.h>
00012 
00013 /* "Default exponent of maximum bandwidth" */
00014 #define BWEXP_MAX 10
00015 
00016 /* "Default maximum bandwidth" */
00017 #define BW_MAX 1024
00018 
00019 #define ROW(k) (k*(wisdom.N_MAX+2))
00020 #define ROWK(k) (k*(wisdom.N_MAX+2)+k)
00021 
00022 #ifdef HAVE_STDBOOL_H
00023 #  include <stdbool.h>
00024 #else
00025 #  warning ISO C99 bool type not available. Defining own bool type.
00026 typedef enum {false = 0,true = 1} bool;
00027 #endif
00028 
00029 //#define FIRST_L (int)floor(ntilde/(double)plength)
00030 //#define LAST_L (int)ceil((Mtilde+1)/(double)plength)-1
00031 
00039 struct nfsft_wisdom
00040 {
00042   bool initialized;
00043   unsigned int flags;
00046   int N_MAX;
00048   int T_MAX;
00049   
00050   /* Data for the direct algorithms */
00051   
00057   double *alpha;
00063   double *beta;
00069   double *gamma;
00070 
00071   /* Data for fast algorithms. */
00072 
00074   double threshold;
00076   fpt_set set;
00077 };
00078 #endif

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