pub struct MemoryEfficientOps;Expand description
Memory-efficient array operations
Implementations§
Source§impl MemoryEfficientOps
impl MemoryEfficientOps
Sourcepub fn transform_inplace<F>(array: &mut Array2<f64>, transform_fn: F)
pub fn transform_inplace<F>(array: &mut Array2<f64>, transform_fn: F)
In-place array transformation to reduce memory allocations
Sourcepub fn batch_process<F, R>(
data: &Array2<f64>,
batch_size: usize,
process_fn: F,
) -> SklResult<Vec<R>>
pub fn batch_process<F, R>( data: &Array2<f64>, batch_size: usize, process_fn: F, ) -> SklResult<Vec<R>>
Batch processing with controlled memory usage
Auto Trait Implementations§
impl Freeze for MemoryEfficientOps
impl RefUnwindSafe for MemoryEfficientOps
impl Send for MemoryEfficientOps
impl Sync for MemoryEfficientOps
impl Unpin for MemoryEfficientOps
impl UnwindSafe for MemoryEfficientOps
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