pub struct SubMatrixRowSlices<M: Matrix<T>, T: Send + Sync> { /* private fields */ }
Expand description
A submatrix of a matrix. The matrix will contain a subset of the columns of self.inner
.
Implementations§
Trait Implementations§
Source§impl<M: Matrix<T>, T: Send + Sync> Matrix<T> for SubMatrixRowSlices<M, T>
impl<M: Matrix<T>, T: Send + Sync> Matrix<T> for SubMatrixRowSlices<M, T>
Implement Matrix
for SubMatrixRowSlices
.
type Row<'a> = Skip<Take<<M as Matrix<T>>::Row<'a>>> where Self: 'a
fn row(&self, r: usize) -> Self::Row<'_>
fn row_slice(&self, r: usize) -> impl Deref<Target = [T]>
fn width(&self) -> usize
fn height(&self) -> usize
fn dimensions(&self) -> Dimensions
fn get(&self, r: usize, c: usize) -> T
fn rows(&self) -> impl Iterator<Item = Self::Row<'_>>
fn par_rows(&self) -> impl IndexedParallelIterator
fn first_row(&self) -> Self::Row<'_>
fn last_row(&self) -> Self::Row<'_>
fn to_row_major_matrix(self) -> DenseMatrix<T>
fn horizontally_packed_row<'a, P>(
&'a self,
r: usize,
) -> (impl Iterator<Item = P> + Send + Sync, impl Iterator<Item = T> + Send + Sync)where
P: PackedValue<Value = T>,
T: Clone + 'a,
§fn padded_horizontally_packed_row<'a, P>(
&'a self,
r: usize,
) -> impl Iterator<Item = P> + Send + Sync
fn padded_horizontally_packed_row<'a, P>( &'a self, r: usize, ) -> impl Iterator<Item = P> + Send + Sync
Zero padded.
fn par_horizontally_packed_rows<'a, P>(&'a self) -> impl IndexedParallelIteratorwhere
P: PackedValue<Value = T>,
T: Clone + 'a,
fn par_padded_horizontally_packed_rows<'a, P>( &'a self, ) -> impl IndexedParallelIterator
§fn vertically_packed_row<P>(&self, r: usize) -> impl Iterator<Item = P>where
T: Copy,
P: PackedValue<Value = T>,
fn vertically_packed_row<P>(&self, r: usize) -> impl Iterator<Item = P>where
T: Copy,
P: PackedValue<Value = T>,
Pack together a collection of adjacent rows from the matrix. Read more
§fn vertically_packed_row_pair<P>(&self, r: usize, step: usize) -> Vec<P>where
T: Copy,
P: PackedValue<Value = T>,
fn vertically_packed_row_pair<P>(&self, r: usize, step: usize) -> Vec<P>where
T: Copy,
P: PackedValue<Value = T>,
Pack together a collection of rows and “next” rows from the matrix. Read more
fn vertically_strided(
self,
stride: usize,
offset: usize,
) -> RowIndexMappedView<VerticallyStridedRowIndexMap, Self>where
Self: Sized,
§fn columnwise_dot_product<EF>(&self, v: &[EF]) -> Vec<EF>where
T: Field,
EF: ExtensionField<T>,
fn columnwise_dot_product<EF>(&self, v: &[EF]) -> Vec<EF>where
T: Field,
EF: ExtensionField<T>,
Compute Mᵀv, aka premultiply this matrix by the given vector,
aka scale each row by the corresponding entry in
v
and take the sum across rows.
v
can be a vector of extension elements.§fn dot_ext_powers<EF>(&self, base: EF) -> impl IndexedParallelIteratorwhere
T: Field,
EF: ExtensionField<T>,
fn dot_ext_powers<EF>(&self, base: EF) -> impl IndexedParallelIteratorwhere
T: Field,
EF: ExtensionField<T>,
Multiply this matrix by the vector of powers of
base
, which is an extension element.Auto Trait Implementations§
impl<M, T> Freeze for SubMatrixRowSlices<M, T>where
M: Freeze,
impl<M, T> RefUnwindSafe for SubMatrixRowSlices<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for SubMatrixRowSlices<M, T>
impl<M, T> Sync for SubMatrixRowSlices<M, T>
impl<M, T> Unpin for SubMatrixRowSlices<M, T>
impl<M, T> UnwindSafe for SubMatrixRowSlices<M, T>where
M: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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