pub struct MatView<'a, T> {
pub data: &'a [T],
pub offset: isize,
pub row_stride: isize,
pub col_stride: isize,
}Expand description
A strided matrix: element (i, j) lives at data[offset + i·row_stride + j·col_stride].
Fields§
§data: &'a [T]The underlying storage.
offset: isizePosition of element (0, 0), in elements.
row_stride: isizeStep between rows, in elements. May be zero or negative.
col_stride: isizeStep between columns, in elements. May be zero or negative.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for MatView<'a, T>
impl<'a, T> RefUnwindSafe for MatView<'a, T>where
&'a [T]: RefUnwindSafe,
impl<'a, T> Send for MatView<'a, T>
impl<'a, T> Sync for MatView<'a, T>
impl<'a, T> Unpin for MatView<'a, T>
impl<'a, T> UnsafeUnpin for MatView<'a, T>where
&'a [T]: UnsafeUnpin,
impl<'a, T> UnwindSafe for MatView<'a, T>where
&'a [T]: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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