you must call either set_forward_transform() or set_backward_transform() before setting the input buffer /
| 335 | // set_backward_transform() before setting the input buffer |
| 336 | /*****************************************************/ |
| 337 | void set_forward_transform() |
| 338 | { |
| 339 | if( _type != c2c ) |
| 340 | throw std::runtime_error( "do not use set_forward_transform() except with c2c transforms" ); |
| 341 | |
| 342 | if( _direction != forward ) |
| 343 | { |
| 344 | _direction = forward; |
| 345 | fftw_guts.destroy_plan(); |
| 346 | fftw_guts.make_plan((int)_lengths[dimx], (int)_lengths[dimy], (int)_lengths[dimz], |
| 347 | (int)input.number_of_dimensions(), (int)input.batch_size(), |
| 348 | reinterpret_cast<fftw_T*>(input.interleaved_ptr()), reinterpret_cast<fftw_T*>(output.interleaved_ptr()), |
| 349 | (int)(_lengths[dimx]*_lengths[dimy]*_lengths[dimz]), _direction, _type); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | /*****************************************************/ |
| 354 | void set_backward_transform() |
nothing calls this directly
no test coverage detected