Mercurial > octave-nkf
comparison liboctave/oct-fftw.h @ 13994:99f039289e95
also clean up float fftw planner
* oct-fftw.h (octave_float_fftw_planner::cleanup_instance):
New function.
* oct-fftw.cc (octave_float_fftw_planner::instance_ok):
Add instance to singleton cleanup list.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 05 Dec 2011 00:30:51 -0500 |
parents | 7dd7cccf0757 |
children | 941d19370065 |
comparison
equal
deleted
inserted
replaced
13993:e58963b5c0b1 | 13994:99f039289e95 |
---|---|
243 | 243 |
244 octave_float_fftw_planner& operator = (const octave_float_fftw_planner&); | 244 octave_float_fftw_planner& operator = (const octave_float_fftw_planner&); |
245 | 245 |
246 static octave_float_fftw_planner *instance; | 246 static octave_float_fftw_planner *instance; |
247 | 247 |
248 static void cleanup_instance (void) { delete instance; instance = 0; } | |
249 | |
248 fftwf_plan | 250 fftwf_plan |
249 do_create_plan (int dir, const int rank, const dim_vector dims, | 251 do_create_plan (int dir, const int rank, const dim_vector dims, |
250 octave_idx_type howmany, octave_idx_type stride, | 252 octave_idx_type howmany, octave_idx_type stride, |
251 octave_idx_type dist, const FloatComplex *in, | 253 octave_idx_type dist, const FloatComplex *in, |
252 FloatComplex *out); | 254 FloatComplex *out); |