pub struct NeuralAdaptiveSparseProcessor { /* private fields */ }
Expand description
Neural-adaptive sparse matrix processor
Implementations§
Source§impl NeuralAdaptiveSparseProcessor
impl NeuralAdaptiveSparseProcessor
Sourcepub fn new(config: NeuralAdaptiveConfig) -> Self
pub fn new(config: NeuralAdaptiveConfig) -> Self
Create a new neural-adaptive sparse matrix processor
Sourcepub fn adaptive_spmv<T>(
&mut self,
rows: usize,
cols: usize,
indptr: &[usize],
indices: &[usize],
data: &[T],
x: &[T],
y: &mut [T],
) -> SparseResult<()>
pub fn adaptive_spmv<T>( &mut self, rows: usize, cols: usize, indptr: &[usize], indices: &[usize], data: &[T], x: &[T], y: &mut [T], ) -> SparseResult<()>
Neural-adaptive sparse matrix-vector multiplication
Sourcepub fn get_stats(&self) -> NeuralProcessorStats
pub fn get_stats(&self) -> NeuralProcessorStats
Get neural processor statistics
Auto Trait Implementations§
impl !Freeze for NeuralAdaptiveSparseProcessor
impl RefUnwindSafe for NeuralAdaptiveSparseProcessor
impl Send for NeuralAdaptiveSparseProcessor
impl Sync for NeuralAdaptiveSparseProcessor
impl Unpin for NeuralAdaptiveSparseProcessor
impl UnwindSafe for NeuralAdaptiveSparseProcessor
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