Struct feanor_math::matrix::submatrix::Submatrix
source · pub struct Submatrix<'a, V, T>where
V: 'a + AsPointerToSlice<T>,{ /* private fields */ }Implementations§
source§impl<'a, V, T> Submatrix<'a, V, T>where
V: 'a + AsPointerToSlice<T>,
impl<'a, V, T> Submatrix<'a, V, T>where
V: 'a + AsPointerToSlice<T>,
pub fn submatrix(self, rows: Range<usize>, cols: Range<usize>) -> Self
pub fn restrict_rows(self, rows: Range<usize>) -> Self
pub fn at<'b>(&'b self, i: usize, j: usize) -> &'b T
pub fn restrict_cols(self, cols: Range<usize>) -> Self
pub fn row_iter(self) -> impl 'a + Clone + ExactSizeIterator<Item = &'a [T]>
pub fn col_iter( self ) -> impl 'a + Clone + ExactSizeIterator<Item = Column<'a, V, T>>
pub fn row_at<'b>(&'b self, i: usize) -> &'b [T]
pub fn col_at<'b>(&'b self, j: usize) -> Column<'b, V, T>
pub fn col_count(&self) -> usize
pub fn row_count(&self) -> usize
source§impl<'a, V, T> Submatrix<'a, V, T>
impl<'a, V, T> Submatrix<'a, V, T>
pub fn concurrent_row_iter(self) -> impl 'a + ExactSizeIterator<Item = &'a [T]>
Trait Implementations§
source§impl<'a, V, T> Clone for Submatrix<'a, V, T>where
V: 'a + AsPointerToSlice<T>,
impl<'a, V, T> Clone for Submatrix<'a, V, T>where
V: 'a + AsPointerToSlice<T>,
source§impl<'a, V, R> Matrix<R> for Submatrix<'a, V, R::Element>
impl<'a, V, R> Matrix<R> for Submatrix<'a, V, R::Element>
fn at(&self, i: usize, j: usize) -> &<R as RingBase>::Element
fn col_count(&self) -> usize
fn row_count(&self) -> usize
fn format<'a, S>(&'a self, ring: &'a S) -> MatrixDisplayWrapper<'a, R, Self>where
S: RingStore<Type = R>,
fn matrix_eq<M, S>(&self, other: &M, ring: S) -> bool
impl<'a, V, T> Copy for Submatrix<'a, V, T>where
V: 'a + AsPointerToSlice<T>,
Auto Trait Implementations§
impl<'a, V, T> RefUnwindSafe for Submatrix<'a, V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V, T> Send for Submatrix<'a, V, T>
impl<'a, V, T> Sync for Submatrix<'a, V, T>
impl<'a, V, T> Unpin for Submatrix<'a, V, T>
impl<'a, V, T> UnwindSafe for Submatrix<'a, V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
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