pub struct MemoryMappedData { /* private fields */ }Expand description
Memory-mapped data operations for large datasets
Implementations§
Source§impl MemoryMappedData
impl MemoryMappedData
Sourcepub fn new(file_path: PathBuf, shape: (usize, usize)) -> Self
pub fn new(file_path: PathBuf, shape: (usize, usize)) -> Self
Create a new memory-mapped data structure
Sourcepub fn write_array(&self, array: &Array2<f64>) -> SklResult<()>
pub fn write_array(&self, array: &Array2<f64>) -> SklResult<()>
Write array data to memory-mapped file
Sourcepub fn read_array(&self) -> SklResult<Array2<f64>>
pub fn read_array(&self) -> SklResult<Array2<f64>>
Read array data from memory-mapped file
Sourcepub fn memory_usage(&self) -> usize
pub fn memory_usage(&self) -> usize
Get estimated memory usage
Auto Trait Implementations§
impl Freeze for MemoryMappedData
impl RefUnwindSafe for MemoryMappedData
impl Send for MemoryMappedData
impl Sync for MemoryMappedData
impl Unpin for MemoryMappedData
impl UnwindSafe for MemoryMappedData
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