pub struct MmapNpyArray2U8 { /* private fields */ }Expand description
Memory-mapped NPY array for u8 values (used for residuals).
This struct provides zero-copy access to 2D u8 arrays stored in NPY format.
Implementations§
Source§impl MmapNpyArray2U8
impl MmapNpyArray2U8
Sourcepub fn from_npy_file(path: &Path) -> Result<Self>
pub fn from_npy_file(path: &Path) -> Result<Self>
Load a 2D u8 array from an NPY file.
Sourcepub fn slice_rows(&self, start: usize, end: usize) -> ArrayView2<'_, u8>
pub fn slice_rows(&self, start: usize, end: usize) -> ArrayView2<'_, u8>
Get a view of rows [start..end] as ArrayView2.
Sourcepub fn view(&self) -> ArrayView2<'_, u8>
pub fn view(&self) -> ArrayView2<'_, u8>
Get a view of the entire array.
Auto Trait Implementations§
impl Freeze for MmapNpyArray2U8
impl RefUnwindSafe for MmapNpyArray2U8
impl Send for MmapNpyArray2U8
impl Sync for MmapNpyArray2U8
impl Unpin for MmapNpyArray2U8
impl UnwindSafe for MmapNpyArray2U8
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