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

Method transform

src/tests/fftw_transform.h:525–548  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

523
524 /*****************************************************/
525 void transform()
526 {
527 fftw_guts.execute();
528
529 if( _type == c2c )
530 {
531 if( _direction == forward ) {
532 output.scale_data( static_cast<T>( forward_scale( ) ) );
533 }
534 else if( _direction == backward ) {
535 output.scale_data( static_cast<T>( backward_scale( ) ) );
536 }
537 }
538 else if( _type == r2c )
539 {
540 output.scale_data( static_cast<T>( forward_scale( ) ) );
541 }
542 else if( _type == c2r )
543 {
544 output.scale_data( static_cast<T>( backward_scale( ) ) );
545 }
546 else
547 throw std::runtime_error( "invalid transform type in fftw::transform()" );
548 }
549
550 /*****************************************************/
551 buffer<T> & result()

Callers

nothing calls this directly

Calls 2

scale_dataMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected