Skip to main content

auto_select_algorithm

Function auto_select_algorithm 

Source
pub fn auto_select_algorithm(
    size: usize,
    forward: bool,
) -> FFTResult<SelectionResult>
Expand description

Auto-select the best FFT algorithm for the given input

This is a convenience function that uses the integrated auto-selector to determine the optimal algorithm based on input characteristics and learned performance data.

§Arguments

  • size - FFT size
  • forward - Whether this is a forward (true) or inverse (false) transform

§Returns

The recommended algorithm and metadata

§Example

use scirs2_fft::auto_tuning::auto_select_algorithm;

let result = auto_select_algorithm(1024, true).expect("Selection failed");
println!("Recommended: {:?}", result.algorithm);