mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]

Wrappers for fftw memory allocation and de-allocation functions. More...

Wrappers for fftw memory allocation and de-allocation functions.

Note
Here the call to sizeof() is implicit, so you only specify the number of elements, not the number of bytes.

Functions

template<typename realT >
realT * mx::math::fft::fftw_malloc (size_t n)
 Call to fftw_malloc, with type cast. More...
 
template<typename realT >
void mx::math::fft::fftw_free (realT *p)
 Call to fftw_free. More...
 

Function Documentation

◆ fftw_free()

template<typename realT >
void mx::math::fft::fftw_free ( realT *  p)

Call to fftw_free.

Parameters
pis a pointer to the array to de-allocate.

Referenced by mx::sigproc::averagePeriodogram< realT >::~averagePeriodogram(), and mx::sigproc::averagePeriodogram< realT >::resize().

◆ fftw_malloc()

template<typename realT >
realT* mx::math::fft::fftw_malloc ( size_t  n)

Call to fftw_malloc, with type cast.

Note
Here the call to sizeof() is implicit, so you only specify the number of elements, not the number of bytes.
Parameters
nis the number of type realT elements, not the number of bytes.