Trait wee_matrix::SubMatrix
[−]
[src]
pub trait SubMatrix<R, S> { type Output; fn subm(&self, rngr: R, rngc: S) -> Result<Self::Output, Error>; }
Trait providing a method for creating a new submatrix view of type Self::Output
into an
existing matrix, given ranges of type R
and S
. Does not copy data; provides a new view.
Associated Types
type Output
The submatrix output type
Required Methods
fn subm(&self, rngr: R, rngc: S) -> Result<Self::Output, Error>
Create a new submatrix view from this matrix, using specified row and column ranges.
Implementors
impl SubMatrix<Range<usize>, Range<usize>> for Matrix type Output = Matrix;
impl SubMatrix<Range<usize>, RangeTo<usize>> for Matrix type Output = Matrix;
impl SubMatrix<Range<usize>, RangeFrom<usize>> for Matrix type Output = Matrix;
impl SubMatrix<Range<usize>, RangeFull> for Matrix type Output = Matrix;
impl SubMatrix<RangeTo<usize>, Range<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeTo<usize>, RangeTo<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeTo<usize>, RangeFrom<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeTo<usize>, RangeFull> for Matrix type Output = Matrix;
impl SubMatrix<RangeFrom<usize>, Range<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeFrom<usize>, RangeTo<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeFrom<usize>, RangeFrom<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeFrom<usize>, RangeFull> for Matrix type Output = Matrix;
impl SubMatrix<RangeFull, Range<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeFull, RangeTo<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeFull, RangeFrom<usize>> for Matrix type Output = Matrix;
impl SubMatrix<RangeFull, RangeFull> for Matrix type Output = Matrix;
impl SubMatrix<Range<usize>, usize> for Matrix type Output = Matrix;
impl SubMatrix<RangeTo<usize>, usize> for Matrix type Output = Matrix;
impl SubMatrix<RangeFrom<usize>, usize> for Matrix type Output = Matrix;
impl SubMatrix<RangeFull, usize> for Matrix type Output = Matrix;
impl SubMatrix<usize, Range<usize>> for Matrix type Output = Matrix;
impl SubMatrix<usize, RangeTo<usize>> for Matrix type Output = Matrix;
impl SubMatrix<usize, RangeFrom<usize>> for Matrix type Output = Matrix;
impl SubMatrix<usize, RangeFull> for Matrix type Output = Matrix;