pub struct AdaptiveVectorizationEngine { /* private fields */ }Expand description
Advanced ENHANCEMENT: Adaptive Vectorization Engine with CPU Feature Detection
This system provides runtime detection of CPU capabilities and automatic selection of optimal vectorization strategies for maximum performance.
Implementations§
Source§impl AdaptiveVectorizationEngine
impl AdaptiveVectorizationEngine
Sourcepub fn select_optimal_strategy(
&self,
matrixsize: (usize, usize),
) -> VectorizationStrategy
pub fn select_optimal_strategy( &self, matrixsize: (usize, usize), ) -> VectorizationStrategy
Select optimal vectorization strategy based on matrix size and CPU features
Sourcepub fn adaptivematrix_multiply_f32(
&mut self,
a: &ArrayView2<'_, f32>,
b: &ArrayView2<'_, f32>,
) -> LinalgResult<Array2<f32>>
pub fn adaptivematrix_multiply_f32( &mut self, a: &ArrayView2<'_, f32>, b: &ArrayView2<'_, f32>, ) -> LinalgResult<Array2<f32>>
Adaptive matrix multiplication with optimal vectorization
Sourcepub fn get_performance_report(&self) -> HashMap<VectorizationStrategy, f64>
pub fn get_performance_report(&self) -> HashMap<VectorizationStrategy, f64>
Get performance report for different strategies
Sourcepub fn set_auto_tuning(&mut self, enabled: bool)
pub fn set_auto_tuning(&mut self, enabled: bool)
Enable or disable auto-tuning
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdaptiveVectorizationEngine
impl RefUnwindSafe for AdaptiveVectorizationEngine
impl Send for AdaptiveVectorizationEngine
impl Sync for AdaptiveVectorizationEngine
impl Unpin for AdaptiveVectorizationEngine
impl UnsafeUnpin for AdaptiveVectorizationEngine
impl UnwindSafe for AdaptiveVectorizationEngine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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