pub struct CpuOptimizer { /* private fields */ }Expand description
Advanced CPU optimizer for ensemble operations
Implementations§
Source§impl CpuOptimizer
impl CpuOptimizer
Sourcepub fn new(config: CpuOptimizationConfig) -> Self
pub fn new(config: CpuOptimizationConfig) -> Self
Create new CPU optimizer
Sourcepub fn auto_detect() -> Self
pub fn auto_detect() -> Self
Create optimizer with auto-detected configuration
Sourcepub fn optimized_matmul(
&mut self,
a: &Array2<Float>,
b: &Array2<Float>,
) -> Result<Array2<Float>>
pub fn optimized_matmul( &mut self, a: &Array2<Float>, b: &Array2<Float>, ) -> Result<Array2<Float>>
Optimized matrix multiplication using tiling and vectorization
Sourcepub fn optimized_ensemble_predict(
&mut self,
models: &[Array1<Float>],
x: &Array2<Float>,
) -> Result<Array1<Int>>
pub fn optimized_ensemble_predict( &mut self, models: &[Array1<Float>], x: &Array2<Float>, ) -> Result<Array1<Int>>
Optimized ensemble prediction with prefetching
Sourcepub fn optimized_histogram(
&mut self,
data: &Array1<Float>,
bins: usize,
min_val: Float,
max_val: Float,
) -> Result<Array1<usize>>
pub fn optimized_histogram( &mut self, data: &Array1<Float>, bins: usize, min_val: Float, max_val: Float, ) -> Result<Array1<usize>>
Cache-optimized histogram computation
Sourcepub fn optimized_tree_traversal(
&mut self,
tree_nodes: &[(usize, Float, Int, Int)],
x: &Array1<Float>,
) -> Result<Int>
pub fn optimized_tree_traversal( &mut self, tree_nodes: &[(usize, Float, Int, Int)], x: &Array1<Float>, ) -> Result<Int>
Branch prediction optimized decision tree traversal
Sourcepub fn performance_counters(&self) -> &PerformanceCounters
pub fn performance_counters(&self) -> &PerformanceCounters
Get performance counters
Sourcepub fn reset_counters(&mut self)
pub fn reset_counters(&mut self)
Reset performance counters
Sourcepub fn cache_efficiency(&self) -> Float
pub fn cache_efficiency(&self) -> Float
Get cache efficiency ratio
Sourcepub fn branch_prediction_accuracy(&self) -> Float
pub fn branch_prediction_accuracy(&self) -> Float
Get branch prediction accuracy
Sourcepub fn vectorization_ratio(&self) -> Float
pub fn vectorization_ratio(&self) -> Float
Get vectorization ratio
Auto Trait Implementations§
impl Freeze for CpuOptimizer
impl RefUnwindSafe for CpuOptimizer
impl Send for CpuOptimizer
impl Sync for CpuOptimizer
impl Unpin for CpuOptimizer
impl UnwindSafe for CpuOptimizer
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