27#ifndef fftwEnvironment_hpp
28#define fftwEnvironment_hpp
84template <
typename realT>
108template <
typename realT>
112 std::string sub =
"fftw_wisdom.";
117 sub =
".fftw_wisdom.";
153template <
typename realT,
bool threads = false>
159 static_cast<void>( nThreads );
175template <
typename realT>
176struct fftwEnvironment<realT, true>
Utilities for working with the environment.
Declares and defines templatized wrappers for the fftw library.
std::string fftw_typename()
Return a string corresponding the fftw real floating point type.
std::string fftw_wisdom_filename()
Create the mxlib standard wisdom filename for the type.
void fftw_make_planner_thread_safe()
Wrapper for fftwX_make_planner_thread_safe().
void fftw_cleanup_threads()
Cleanup persistent planner data and threads data.
void fftw_cleanup()
Cleanup persistent planner data.
void fftw_plan_with_nthreads(int nthreads)
Tell the FFTW planner how many threads to use.
int fftw_import_wisdom_from_filename(const char *filename)
Template wrapper for fftwX_import_wisdom_from_filename(const char *);.
int fftw_export_wisdom_to_filename(const char *filename)
Template wrapper for fftwX_export_wisdom_to_filename(const char *);.
std::string getEnv(const std::string &estr)
Return the value of an environment variable.
fftwEnvironment(unsigned nThreads=0)
Constructor.
~fftwEnvironment()
Destructor.