pub struct MemoryMappedMatrix { /* private fields */ }Expand description
Memory-mapped matrix operations for efficient disk access
Implementations§
Source§impl MemoryMappedMatrix
impl MemoryMappedMatrix
pub fn open<P: AsRef<Path>>( path: P, shape: (usize, usize), dtype_size: usize, ) -> SklearsResult<Self>
pub fn shape(&self) -> (usize, usize)
pub fn read_row(&self, row: usize) -> SklearsResult<Vec<f64>>
pub fn read_chunk( &self, start_row: usize, n_rows: usize, ) -> SklearsResult<Array2<f64>>
Auto Trait Implementations§
impl Freeze for MemoryMappedMatrix
impl RefUnwindSafe for MemoryMappedMatrix
impl Send for MemoryMappedMatrix
impl Sync for MemoryMappedMatrix
impl Unpin for MemoryMappedMatrix
impl UnsafeUnpin for MemoryMappedMatrix
impl UnwindSafe for MemoryMappedMatrix
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> 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