pub struct AutoTuner { /* private fields */ }Expand description
Auto-tuning manager
Implementations§
Source§impl AutoTuner
impl AutoTuner
Sourcepub fn with_config(config: AutoTuneConfig) -> Self
pub fn with_config(config: AutoTuneConfig) -> Self
Create a new auto-tuner with custom configuration
Sourcepub fn save_database(&self) -> FFTResult<()>
pub fn save_database(&self) -> FFTResult<()>
Save the tuning database to disk
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Enable or disable auto-tuning
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if auto-tuning is enabled
Sourcepub fn run_benchmarks(&mut self) -> FFTResult<()>
pub fn run_benchmarks(&mut self) -> FFTResult<()>
Run benchmarks for all configured FFT variants and sizes
Sourcepub fn get_best_variant(&self, size: usize, forward: bool) -> FftVariant
pub fn get_best_variant(&self, size: usize, forward: bool) -> FftVariant
Get the best FFT variant for the given size and direction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoTuner
impl RefUnwindSafe for AutoTuner
impl Send for AutoTuner
impl Sync for AutoTuner
impl Unpin for AutoTuner
impl UnwindSafe for AutoTuner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more