Wrappers for working with fftw plans.
More...
Wrappers for working with fftw plans.
◆ fftw_cleanup()
template<typename realT >
void mx::math::fft::fftw_cleanup |
( |
| ) |
|
Cleanup persistent planner data.
◆ fftw_cleanup_threads()
template<typename realT >
void mx::math::fft::fftw_cleanup_threads |
( |
| ) |
|
Cleanup persistent planner data and threads data.
◆ fftw_make_planner_thread_safe()
template<typename realT >
void mx::math::fft::fftw_make_planner_thread_safe |
( |
| ) |
|
Wrapper for fftwX_make_planner_thread_safe()
- Template Parameters
-
realT | the real floating point type |
◆ fftw_plan_dft()
template<typename inputDataT , typename outputDataT >
fftwTypeSpec<inputDataT,outputDataT>::planT mx::math::fft::fftw_plan_dft |
( |
std::vector< int > |
n, |
|
|
inputDataT * |
in, |
|
|
outputDataT * |
out, |
|
|
int |
sign, |
|
|
unsigned |
flags |
|
) |
| |
Wrapper for the fftwX_plan_dft functions.
- Parameters
-
n | is a vector of ints containing the size of each dimension. |
in | is the input data array |
out | is the output data array |
sign | specifies forward or backwards, i.e. FFTW_FORWARD or FFTW_BACKWARD. |
flags | other fftw flags |
- Returns
- an fftw plan for the types specified.
- Template Parameters
-
inputDataT | the data type of the input array |
outputDataT | the data type of the output array |
◆ fftw_plan_with_nthreads()
template<typename realT >
void mx::math::fft::fftw_plan_with_nthreads |
( |
int |
nthreads | ) |
|
Tell the FFTW planner how many threads to use.
- Template Parameters
-
realT | the real floating point type. |
- Parameters
-
[in] | nthreads | the number of threads. Set to 1 to disable threads. |