TwiceAsNice  2019-02-18
Macros | Functions
fft.h File Reference
#include "fits/fitscat.h"
Include dependency graph for fft.h:
This graph shows which files directly or indirectly include this file:

Macros

#define QFFTWF_MALLOC(ptr, typ, nel)
 
#define QFFTWF_CALLOC(ptr, typ, nel)
 
#define QFFTWF_FREE(ptr)   {fftwf_free(ptr); ptr=NULL;}
 

Functions

void fft_conv (float *data1, float *fdata2, int width, int height)
 
void fft_ctf (float *data, int width, int height, int sign)
 
void fft_end (int nthreads)
 
void fft_init (int nthreads)
 
float * fft_rtf (float *data, int width, int height)
 

Macro Definition Documentation

◆ QFFTWF_CALLOC

#define QFFTWF_CALLOC (   ptr,
  typ,
  nel 
)
Value:
{ \
if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \
{ \
sprintf(gstr, #ptr " (" #nel "=%lu elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
}; \
memset(ptr, 0, (size_t)(nel)*sizeof(typ)); \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

◆ QFFTWF_FREE

#define QFFTWF_FREE (   ptr)    {fftwf_free(ptr); ptr=NULL;}

◆ QFFTWF_MALLOC

#define QFFTWF_MALLOC (   ptr,
  typ,
  nel 
)
Value:
{ \
if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \
{ \
sprintf(gstr, #ptr " (" #nel "=%lu elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
}; \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

Function Documentation

◆ fft_conv()

void fft_conv ( float *  data1,
float *  fdata2,
int  width,
int  height 
)

◆ fft_ctf()

void fft_ctf ( float *  data,
int  width,
int  height,
int  sign 
)

◆ fft_end()

void fft_end ( int  nthreads)

◆ fft_init()

void fft_init ( int  nthreads)

◆ fft_rtf()

float* fft_rtf ( float *  data,
int  width,
int  height 
)