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_FREE(ptr)   {fftwf_free(ptr); ptr=NULL;}
 

Functions

void fft_conv (float *data1, float *fdata2, int *size)
 
void fft_end (void)
 
void fft_init (int nthreads)
 
void fft_reset (void)
 
float * fft_rtf (float *data, int *size)
 

Macro Definition Documentation

◆ 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 "=%lld 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 *  size 
)

◆ fft_end()

void fft_end ( void  )

◆ fft_init()

void fft_init ( int  nthreads)

◆ fft_reset()

void fft_reset ( void  )

◆ fft_rtf()

float* fft_rtf ( float *  data,
int *  size 
)