Trait wee_matrix::CloneSub
[−]
[src]
pub trait CloneSub<R, S> { type Output; fn clone_subm(&self, rngr: R, rngc: S) -> Result<Self::Output, Error>; }
Trait providing a method for cloning a submatrix of an existing matrix into an entirely new
matrix of type Self::Output
, given ranges of type R
and S
. Copies data from the original
matrix, creating a new underlying matrix data store.
Associated Types
type Output
The submatrix output type
Required Methods
fn clone_subm(&self, rngr: R, rngc: S) -> Result<Self::Output, Error>
Clone a new submatrix from this matrix, using specified row and column ranges.
Implementors
impl CloneSub<Range<usize>, Range<usize>> for Matrix type Output = Matrix;
impl CloneSub<Range<usize>, RangeTo<usize>> for Matrix type Output = Matrix;
impl CloneSub<Range<usize>, RangeFrom<usize>> for Matrix type Output = Matrix;
impl CloneSub<Range<usize>, RangeFull> for Matrix type Output = Matrix;
impl CloneSub<RangeTo<usize>, Range<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeTo<usize>, RangeTo<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeTo<usize>, RangeFrom<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeTo<usize>, RangeFull> for Matrix type Output = Matrix;
impl CloneSub<RangeFrom<usize>, Range<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeFrom<usize>, RangeTo<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeFrom<usize>, RangeFrom<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeFrom<usize>, RangeFull> for Matrix type Output = Matrix;
impl CloneSub<RangeFull, Range<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeFull, RangeTo<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeFull, RangeFrom<usize>> for Matrix type Output = Matrix;
impl CloneSub<RangeFull, RangeFull> for Matrix type Output = Matrix;
impl CloneSub<usize, Range<usize>> for Matrix type Output = Matrix;
impl CloneSub<usize, RangeTo<usize>> for Matrix type Output = Matrix;
impl CloneSub<usize, RangeFrom<usize>> for Matrix type Output = Matrix;
impl CloneSub<usize, RangeFull> for Matrix type Output = Matrix;
impl CloneSub<Range<usize>, usize> for Matrix type Output = Matrix;
impl CloneSub<RangeTo<usize>, usize> for Matrix type Output = Matrix;
impl CloneSub<RangeFrom<usize>, usize> for Matrix type Output = Matrix;
impl CloneSub<RangeFull, usize> for Matrix type Output = Matrix;