MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / set_forward_transform

Method set_forward_transform

src/tests/fftw_transform.h:337–351  ·  view source on GitHub ↗

you must call either set_forward_transform() or set_backward_transform() before setting the input buffer /

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 5

number_of_dimensionsMethod · 0.80
batch_sizeMethod · 0.80
interleaved_ptrMethod · 0.80
destroy_planMethod · 0.45
make_planMethod · 0.45

Tested by

no test coverage detected