pub struct ChunkedOperations;
Expand description
Chunked sparse matrix operations for memory efficiency
Implementations§
Source§impl ChunkedOperations
impl ChunkedOperations
Sourcepub fn chunked_sparse_add<T, S1, S2>(
a: &S1,
b: &S2,
chunk_size: usize,
memory_tracker: Option<&mut MemoryTracker>,
) -> SparseResult<CsrArray<T>>where
T: Float + Debug + Copy + 'static + SimdUnifiedOps + Send + Sync + AddAssign,
S1: SparseArray<T>,
S2: SparseArray<T>,
pub fn chunked_sparse_add<T, S1, S2>(
a: &S1,
b: &S2,
chunk_size: usize,
memory_tracker: Option<&mut MemoryTracker>,
) -> SparseResult<CsrArray<T>>where
T: Float + Debug + Copy + 'static + SimdUnifiedOps + Send + Sync + AddAssign,
S1: SparseArray<T>,
S2: SparseArray<T>,
Memory-efficient sparse matrix addition using chunking
Sourcepub fn chunked_sparse_scale<T, S>(
matrix: &S,
scalar: T,
chunk_size: usize,
memory_tracker: Option<&mut MemoryTracker>,
) -> SparseResult<CsrArray<T>>
pub fn chunked_sparse_scale<T, S>( matrix: &S, scalar: T, chunk_size: usize, memory_tracker: Option<&mut MemoryTracker>, ) -> SparseResult<CsrArray<T>>
Memory-efficient sparse matrix scaling using chunking
Sourcepub fn chunked_format_conversion<T, S>(
matrix: &S,
chunk_size: usize,
memory_tracker: Option<&mut MemoryTracker>,
) -> SparseResult<CsrArray<T>>
pub fn chunked_format_conversion<T, S>( matrix: &S, chunk_size: usize, memory_tracker: Option<&mut MemoryTracker>, ) -> SparseResult<CsrArray<T>>
Memory-efficient sparse matrix conversion with chunking
Sourcepub fn bandwidth_reduction<T, S>(
matrix: &S,
memory_tracker: Option<&mut MemoryTracker>,
) -> SparseResult<(Vec<usize>, CsrArray<T>)>
pub fn bandwidth_reduction<T, S>( matrix: &S, memory_tracker: Option<&mut MemoryTracker>, ) -> SparseResult<(Vec<usize>, CsrArray<T>)>
Memory-efficient bandwidth reduction using reverse Cuthill-McKee algorithm
Auto Trait Implementations§
impl Freeze for ChunkedOperations
impl RefUnwindSafe for ChunkedOperations
impl Send for ChunkedOperations
impl Sync for ChunkedOperations
impl Unpin for ChunkedOperations
impl UnwindSafe for ChunkedOperations
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