Struct p3_matrix::row_index_mapped::RowIndexMappedView
source · pub struct RowIndexMappedView<IndexMap, Inner> {
pub index_map: IndexMap,
pub inner: Inner,
}
Fields§
§index_map: IndexMap
§inner: Inner
Trait Implementations§
source§impl<T: Send + Sync, IndexMap: RowIndexMap, Inner: Matrix<T>> Matrix<T> for RowIndexMappedView<IndexMap, Inner>
impl<T: Send + Sync, IndexMap: RowIndexMap, Inner: Matrix<T>> Matrix<T> for RowIndexMappedView<IndexMap, Inner>
fn width(&self) -> usize
fn height(&self) -> usize
type Row<'a> = <Inner as Matrix<T>>::Row<'a> where Self: 'a
fn row(&self, r: usize) -> Self::Row<'_>
fn get(&self, r: usize, c: usize) -> T
fn row_slice(&self, r: usize) -> impl Deref<Target = [T]>
fn horizontally_packed_row<'a, P>(
&'a self,
r: usize,
) -> (impl Iterator<Item = P>, impl Iterator<Item = T>)where
P: PackedValue<Value = T>,
T: Clone + 'a,
fn to_row_major_matrix(self) -> RowMajorMatrix<T>
fn dimensions(&self) -> Dimensions
fn rows(&self) -> impl Iterator<Item = Self::Row<'_>>
fn par_rows(&self) -> impl IndexedParallelIterator<Item = Self::Row<'_>>
fn first_row(&self) -> Self::Row<'_>
fn last_row(&self) -> Self::Row<'_>
source§fn vertically_packed_row<P>(&self, r: usize) -> impl Iterator<Item = P>where
P: PackedValue<Value = T>,
fn vertically_packed_row<P>(&self, r: usize) -> impl Iterator<Item = P>where
P: PackedValue<Value = T>,
Wraps at the end.
fn vertically_strided(
self,
stride: usize,
offset: usize,
) -> VerticallyStridedMatrixView<Self>where
Self: Sized,
Auto Trait Implementations§
impl<IndexMap, Inner> Freeze for RowIndexMappedView<IndexMap, Inner>
impl<IndexMap, Inner> RefUnwindSafe for RowIndexMappedView<IndexMap, Inner>where
IndexMap: RefUnwindSafe,
Inner: RefUnwindSafe,
impl<IndexMap, Inner> Send for RowIndexMappedView<IndexMap, Inner>
impl<IndexMap, Inner> Sync for RowIndexMappedView<IndexMap, Inner>
impl<IndexMap, Inner> Unpin for RowIndexMappedView<IndexMap, Inner>
impl<IndexMap, Inner> UnwindSafe for RowIndexMappedView<IndexMap, Inner>where
IndexMap: UnwindSafe,
Inner: 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
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