/
| 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() |
nothing calls this directly
no test coverage detected