39 FILE *out=fopen(outFile,
"w");
42 fftw_export_wisdom_to_file(out);
49 FILE *in=fopen(inFile,
"r");
52 bool ret=(bool)fftw_import_wisdom_from_file(in);
61 return (
bool)fftw_import_system_wisdom();
#define Q_BEGIN_NAMESPACE
Singleton class for handling FFTW3 wisdom.
bool ImportWisdomFromFile(const char *inFile)
Load wisdom from file.
std::string fWisdomFile
The file from which the wisdom was loaded.
static QFFTW3Wisdom * Get()
Access to the singleton class.
bool fSavingWisdom
Saving wisdom.
static QFFTW3Wisdom * fInstance
Pointer to the singleton instance.
bool ExportWisdomToFile(const char *outFile)
Save the accumulated wisdom to file.
bool ImportSystemWisdom()
Load wisdom from a system file.
QFFTW3Wisdom()
Default ctor.
~QFFTW3Wisdom()
Default dtor.
bool ForgetWisdom(void)
Forget any accumulated wisdom.
bool fLocalWisdom
Local wisdom used.