pub struct MatrixSlice<'a, T>where
T: 'a,{ /* private fields */ }Expand description
A MatrixSlice
This struct provides a slice into a matrix.
The struct contains the upper left point of the slice and the width and height of the slice.
Implementations§
Source§impl<'a, T> MatrixSlice<'a, T>
impl<'a, T> MatrixSlice<'a, T>
Sourcepub fn from_matrix(
mat: &'a Matrix<T>,
start: [usize; 2],
rows: usize,
cols: usize,
) -> MatrixSlice<'a, T>
pub fn from_matrix( mat: &'a Matrix<T>, start: [usize; 2], rows: usize, cols: usize, ) -> MatrixSlice<'a, T>
Produce a MatrixSlice from a Matrix
§Examples
use rulinalg::matrix::{Matrix, MatrixSlice};
let a = Matrix::new(3,3, (0..9).collect::<Vec<usize>>());
let slice = MatrixSlice::from_matrix(&a, [1,1], 2, 2);Sourcepub unsafe fn from_raw_parts(
ptr: *const T,
rows: usize,
cols: usize,
row_stride: usize,
) -> MatrixSlice<'a, T>
pub unsafe fn from_raw_parts( ptr: *const T, rows: usize, cols: usize, row_stride: usize, ) -> MatrixSlice<'a, T>
Creates a MatrixSlice from raw parts.
§Examples
use rulinalg::matrix::MatrixSlice;
let mut a = vec![4.0; 16];
unsafe {
// Create a matrix slice with 3 rows, and 3 cols
// The row stride of 4 specifies the distance between the start of each row in the data.
let b = MatrixSlice::from_raw_parts(a.as_ptr(), 3, 3, 4);
}§Safety
The pointer must be followed by a contiguous slice of data larger than row_stride * rows.
If not then other operations will produce undefined behaviour.
Additionally cols should be less than the row_stride. It is possible to use this
function safely whilst violating this condition. So long as
max(cols, row_stride) * rows is less than the data size.
Sourcepub fn reslice(
self,
start: [usize; 2],
rows: usize,
cols: usize,
) -> MatrixSlice<'a, T>
pub fn reslice( self, start: [usize; 2], rows: usize, cols: usize, ) -> MatrixSlice<'a, T>
Produce a MatrixSlice from an existing MatrixSlice.
This function will be deprecated. Prefer using BaseMatrix::sub_slice.
§Examples
use rulinalg::matrix::{Matrix, MatrixSlice};
let a = Matrix::new(3,3, (0..9).collect::<Vec<usize>>());
let slice = MatrixSlice::from_matrix(&a, [1,1], 2, 2);
let new_slice = slice.reslice([0,0], 1, 1);Trait Implementations§
Source§impl<'a, 'b, 'c, T> Add<&'c Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, 'b, 'c, T> Add<&'c Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, 'b, T> Add<&'b Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, 'b, T> Add<&'b Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, 'b, T> Add<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, 'b, T> Add<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, T> Add<&'c MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, T> Add<&'c MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, T> Add<&'c T> for &'b MatrixSlice<'a, T>
Scalar
addition
with matrix slice.
impl<'a, 'b, 'c, T> Add<&'c T> for &'b MatrixSlice<'a, T>
Scalar addition with matrix slice.
Source§impl<'a, 'b, T> Add<&'b T> for MatrixSlice<'a, T>
Scalar
addition
with matrix slice.
impl<'a, 'b, T> Add<&'b T> for MatrixSlice<'a, T>
Scalar addition with matrix slice.
Source§impl<'a, 'b, T> Add<Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, 'b, T> Add<Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, T> Add<Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, T> Add<Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, 'b, T> Add<MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, 'b, T> Add<MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, T> Add<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
impl<'a, T> Add<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
addition
between Matrix and MatrixSlice.
Source§impl<'a, 'b, 'c, T> Add<MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, T> Add<MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, T> Add<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, T> Add<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, T> Add<MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, T> Add<MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, T> Add<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, T> Add<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, 'c, T> Add<MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, 'c, T> Add<MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, T> Add<MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
addition
between the slices.
impl<'a, 'b, T> Add<MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise addition between the slices.
Source§impl<'a, 'b, T> Add<T> for &'b MatrixSlice<'a, T>
Scalar
addition
with matrix slice.
impl<'a, 'b, T> Add<T> for &'b MatrixSlice<'a, T>
Scalar addition with matrix slice.
Source§impl<'a, T> Add<T> for MatrixSlice<'a, T>
Scalar
addition
with matrix slice.
impl<'a, T> Add<T> for MatrixSlice<'a, T>
Scalar addition with matrix slice.
Source§impl<'a, 'b, T> AddAssign<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
addition
assignment between two matrices.
impl<'a, 'b, T> AddAssign<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise addition assignment between two matrices.
Source§fn add_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
fn add_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
+= operation. Read moreSource§impl<'a, 'b, 'c, T> AddAssign<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
addition
assignment between two matrices.
impl<'a, 'b, 'c, T> AddAssign<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise addition assignment between two matrices.
Source§fn add_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
fn add_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
+= operation. Read moreSource§impl<'a, T> AddAssign<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
addition
assignment between two matrices.
impl<'a, T> AddAssign<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise addition assignment between two matrices.
Source§fn add_assign(&mut self, _rhs: MatrixSlice<'_, T>)
fn add_assign(&mut self, _rhs: MatrixSlice<'_, T>)
+= operation. Read moreSource§impl<'a, 'b, T> AddAssign<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
addition
assignment between two matrices.
impl<'a, 'b, T> AddAssign<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise addition assignment between two matrices.
Source§fn add_assign(&mut self, _rhs: MatrixSlice<'_, T>)
fn add_assign(&mut self, _rhs: MatrixSlice<'_, T>)
+= operation. Read moreSource§impl<'a, T> BaseMatrix<T> for MatrixSlice<'a, T>
impl<'a, T> BaseMatrix<T> for MatrixSlice<'a, T>
Source§fn row_stride(&self) -> usize
fn row_stride(&self) -> usize
Source§fn as_slice(&self) -> MatrixSlice<'_, T>
fn as_slice(&self) -> MatrixSlice<'_, T>
MatrixSlice over the whole matrix. Read moreSource§unsafe fn get_unchecked(&self, index: [usize; 2]) -> &T
unsafe fn get_unchecked(&self, index: [usize; 2]) -> &T
Source§fn get_row(&self, index: usize) -> Option<&[T]>
fn get_row(&self, index: usize) -> Option<&[T]>
None if the index is out of bounds. Read moreSource§unsafe fn get_row_unchecked(&self, index: usize) -> &[T]
unsafe fn get_row_unchecked(&self, index: usize) -> &[T]
Source§fn iter<'a>(&self) -> SliceIter<'a, T>where
T: 'a,
fn iter<'a>(&self) -> SliceIter<'a, T>where
T: 'a,
Source§fn iter_diag(&self, k: DiagOffset) -> Diagonal<'_, T, Self>
fn iter_diag(&self, k: DiagOffset) -> Diagonal<'_, T, Self>
Source§fn into_matrix(self) -> Matrix<T>where
T: Copy,
fn into_matrix(self) -> Matrix<T>where
T: Copy,
Source§fn select_rows<'a, I>(&self, rows: I) -> Matrix<T>where
T: Copy,
I: IntoIterator<Item = &'a usize>,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
fn select_rows<'a, I>(&self, rows: I) -> Matrix<T>where
T: Copy,
I: IntoIterator<Item = &'a usize>,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
Source§fn select_cols<'a, I>(&self, cols: I) -> Matrix<T>where
T: Copy,
I: IntoIterator<Item = &'a usize>,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
fn select_cols<'a, I>(&self, cols: I) -> Matrix<T>where
T: Copy,
I: IntoIterator<Item = &'a usize>,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
Source§fn select(&self, rows: &[usize], cols: &[usize]) -> Matrix<T>where
T: Copy,
fn select(&self, rows: &[usize], cols: &[usize]) -> Matrix<T>where
T: Copy,
Source§fn hcat<S>(&self, m: &S) -> Matrix<T>where
T: Copy,
S: BaseMatrix<T>,
fn hcat<S>(&self, m: &S) -> Matrix<T>where
T: Copy,
S: BaseMatrix<T>,
Source§fn vcat<S>(&self, m: &S) -> Matrix<T>where
T: Copy,
S: BaseMatrix<T>,
fn vcat<S>(&self, m: &S) -> Matrix<T>where
T: Copy,
S: BaseMatrix<T>,
Source§fn solve_u_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error>
fn solve_u_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error>
Source§fn solve_l_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error>
fn solve_l_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error>
Source§fn split_at(
&self,
mid: usize,
axis: Axes,
) -> (MatrixSlice<'_, T>, MatrixSlice<'_, T>)
fn split_at( &self, mid: usize, axis: Axes, ) -> (MatrixSlice<'_, T>, MatrixSlice<'_, T>)
MatrixSlices. Read moreSource§impl<'a, T> Clone for MatrixSlice<'a, T>where
T: Clone + 'a,
impl<'a, T> Clone for MatrixSlice<'a, T>where
T: Clone + 'a,
Source§fn clone(&self) -> MatrixSlice<'a, T>
fn clone(&self) -> MatrixSlice<'a, T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a, T> Debug for MatrixSlice<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for MatrixSlice<'a, T>where
T: Debug + 'a,
Source§impl<'a, 'b, 'c, T> Div<&'c T> for &'b MatrixSlice<'a, T>
Scalar
division
with matrix slice.
impl<'a, 'b, 'c, T> Div<&'c T> for &'b MatrixSlice<'a, T>
Scalar division with matrix slice.
Source§impl<'a, 'b, T> Div<&'b T> for MatrixSlice<'a, T>
Scalar
division
with matrix slice.
impl<'a, 'b, T> Div<&'b T> for MatrixSlice<'a, T>
Scalar division with matrix slice.
Source§impl<'a, 'b, T> Div<T> for &'b MatrixSlice<'a, T>
Scalar
division
with matrix slice.
impl<'a, 'b, T> Div<T> for &'b MatrixSlice<'a, T>
Scalar division with matrix slice.
Source§impl<'a, T> Div<T> for MatrixSlice<'a, T>
Scalar
division
with matrix slice.
impl<'a, T> Div<T> for MatrixSlice<'a, T>
Scalar division with matrix slice.
Source§impl<'a, T> From<MatrixSlice<'a, T>> for Matrix<T>where
T: Copy,
impl<'a, T> From<MatrixSlice<'a, T>> for Matrix<T>where
T: Copy,
Source§fn from(slice: MatrixSlice<'a, T>) -> Matrix<T>
fn from(slice: MatrixSlice<'a, T>) -> Matrix<T>
Source§impl<'a, T> Index<[usize; 2]> for MatrixSlice<'a, T>
Indexes
matrix slice.
Takes row index first then column.
impl<'a, T> Index<[usize; 2]> for MatrixSlice<'a, T>
Indexes matrix slice. Takes row index first then column.
Source§impl<'a, T> IntoIterator for &'a MatrixSlice<'a, T>
impl<'a, T> IntoIterator for &'a MatrixSlice<'a, T>
Source§impl<'a, T> IntoIterator for &'a mut MatrixSlice<'a, T>
impl<'a, T> IntoIterator for &'a mut MatrixSlice<'a, T>
Source§impl<'a, T> IntoIterator for MatrixSlice<'a, T>
impl<'a, T> IntoIterator for MatrixSlice<'a, T>
Source§impl<'a, T> Metric<T> for MatrixSlice<'a, T>where
T: Float,
impl<'a, T> Metric<T> for MatrixSlice<'a, T>where
T: Float,
Source§impl<'a, 'b, 'c, T> Mul<&'c Matrix<T>> for &'b MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<&'c Matrix<T>> for &'b MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<&'b Matrix<T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<&'b Matrix<T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'a, T>> for &'b Matrix<T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'a, T>> for &'b Matrix<T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<&'b MatrixSlice<'a, T>> for Matrix<T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<&'b MatrixSlice<'a, T>> for Matrix<T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<&'c MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<&'c MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<&'c T> for &'b MatrixSlice<'a, T>
Scalar
multiplication
with matrix slice.
impl<'a, 'b, 'c, T> Mul<&'c T> for &'b MatrixSlice<'a, T>
Scalar multiplication with matrix slice.
Source§impl<'a, 'b, T> Mul<&'b T> for MatrixSlice<'a, T>
Scalar
multiplication
with matrix slice.
impl<'a, 'b, T> Mul<&'b T> for MatrixSlice<'a, T>
Scalar multiplication with matrix slice.
Source§impl<'a, 'b, T> Mul<Matrix<T>> for &'b MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<Matrix<T>> for &'b MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, T> Mul<Matrix<T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, T> Mul<Matrix<T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<MatrixSlice<'a, T>> for &'b Matrix<T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<MatrixSlice<'a, T>> for &'b Matrix<T>
Multiplies two matrices together.
Source§impl<'a, T> Mul<MatrixSlice<'a, T>> for Matrix<T>
Multiplies two matrices together.
impl<'a, T> Mul<MatrixSlice<'a, T>> for Matrix<T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, 'c, T> Mul<MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, 'c, T> Mul<MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
impl<'a, 'b, T> Mul<MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Multiplies two matrices together.
Source§impl<'a, 'b, T> Mul<T> for &'b MatrixSlice<'a, T>
Scalar
multiplication
with matrix slice.
impl<'a, 'b, T> Mul<T> for &'b MatrixSlice<'a, T>
Scalar multiplication with matrix slice.
Source§impl<'a, T> Mul<T> for MatrixSlice<'a, T>
Scalar
multiplication
with matrix slice.
impl<'a, T> Mul<T> for MatrixSlice<'a, T>
Scalar multiplication with matrix slice.
Source§impl<'a, 'b, T> Neg for &'b MatrixSlice<'a, T>
Gets negative of matrix slice.
impl<'a, 'b, T> Neg for &'b MatrixSlice<'a, T>
Gets negative of matrix slice.
Source§impl<'a, T> Neg for MatrixSlice<'a, T>
Gets negative of matrix slice.
impl<'a, T> Neg for MatrixSlice<'a, T>
Gets negative of matrix slice.
Source§impl<'a, 'b, 'c, T> Sub<&'c Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, 'b, 'c, T> Sub<&'c Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, 'b, T> Sub<&'b Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, 'b, T> Sub<&'b Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, 'b, T> Sub<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, 'b, T> Sub<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, T> Sub<&'c MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, T> Sub<&'c MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, T> Sub<&'c T> for &'b MatrixSlice<'a, T>
Scalar
subtraction
with matrix slice.
impl<'a, 'b, 'c, T> Sub<&'c T> for &'b MatrixSlice<'a, T>
Scalar subtraction with matrix slice.
Source§impl<'a, 'b, T> Sub<&'b T> for MatrixSlice<'a, T>
Scalar
subtraction
with matrix slice.
impl<'a, 'b, T> Sub<&'b T> for MatrixSlice<'a, T>
Scalar subtraction with matrix slice.
Source§impl<'a, 'b, T> Sub<Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, 'b, T> Sub<Matrix<T>> for &'b MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, T> Sub<Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, T> Sub<Matrix<T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, 'b, T> Sub<MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, 'b, T> Sub<MatrixSlice<'a, T>> for &'b Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, T> Sub<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
impl<'a, T> Sub<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
subtraction
between Matrix and MatrixSlice.
Source§impl<'a, 'b, 'c, T> Sub<MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, T> Sub<MatrixSlice<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, T> Sub<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, T> Sub<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, T> Sub<MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, T> Sub<MatrixSlice<'b, T>> for MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, T> Sub<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, T> Sub<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, 'c, T> Sub<MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, 'c, T> Sub<MatrixSliceMut<'b, T>> for &'c MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, T> Sub<MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise
subtraction
between the slices.
impl<'a, 'b, T> Sub<MatrixSliceMut<'b, T>> for MatrixSlice<'a, T>
Performs elementwise subtraction between the slices.
Source§impl<'a, 'b, T> Sub<T> for &'b MatrixSlice<'a, T>
Scalar
subtraction
with matrix slice.
impl<'a, 'b, T> Sub<T> for &'b MatrixSlice<'a, T>
Scalar subtraction with matrix slice.
Source§impl<'a, T> Sub<T> for MatrixSlice<'a, T>
Scalar
subtraction
with matrix slice.
impl<'a, T> Sub<T> for MatrixSlice<'a, T>
Scalar subtraction with matrix slice.
Source§impl<'a, 'b, T> SubAssign<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
subtraction
assignment between two matrices.
impl<'a, 'b, T> SubAssign<&'b MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise subtraction assignment between two matrices.
Source§fn sub_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
fn sub_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
-= operation. Read moreSource§impl<'a, 'b, 'c, T> SubAssign<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
subtraction
assignment between two matrices.
impl<'a, 'b, 'c, T> SubAssign<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise subtraction assignment between two matrices.
Source§fn sub_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
fn sub_assign(&mut self, _rhs: &MatrixSlice<'_, T>)
-= operation. Read moreSource§impl<'a, T> SubAssign<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise
subtraction
assignment between two matrices.
impl<'a, T> SubAssign<MatrixSlice<'a, T>> for Matrix<T>
Performs elementwise subtraction assignment between two matrices.
Source§fn sub_assign(&mut self, _rhs: MatrixSlice<'_, T>)
fn sub_assign(&mut self, _rhs: MatrixSlice<'_, T>)
-= operation. Read moreSource§impl<'a, 'b, T> SubAssign<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise
subtraction
assignment between two matrices.
impl<'a, 'b, T> SubAssign<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T>
Performs elementwise subtraction assignment between two matrices.
Source§fn sub_assign(&mut self, _rhs: MatrixSlice<'_, T>)
fn sub_assign(&mut self, _rhs: MatrixSlice<'_, T>)
-= operation. Read more