pub struct AutoTuner { /* private fields */ }Expand description
Auto-tuner for algorithm parameters
Implementations§
Source§impl AutoTuner
impl AutoTuner
Sourcepub fn new(hardware: HardwareInfo) -> Self
pub fn new(hardware: HardwareInfo) -> Self
Create new auto-tuner with detected hardware
Sourcepub fn tune_for_problemsize(&self, problemsize: usize) -> TuningProfile
pub fn tune_for_problemsize(&self, problemsize: usize) -> TuningProfile
Tune parameters for specific problem size
Sourcepub fn benchmark_tune<F: IntegrateFloat>(
&mut self,
algorithm_name: &str,
benchmark_fn: impl Fn(&TuningProfile) -> Duration,
problemsize: usize,
) -> TuningProfile
pub fn benchmark_tune<F: IntegrateFloat>( &mut self, algorithm_name: &str, benchmark_fn: impl Fn(&TuningProfile) -> Duration, problemsize: usize, ) -> TuningProfile
Benchmark-based tuning for specific algorithms
Sourcepub fn hardware_info(&self) -> &HardwareInfo
pub fn hardware_info(&self) -> &HardwareInfo
Get hardware information
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