Struct rulinalg::matrix::MatrixSliceMut
[−]
[src]
pub struct MatrixSliceMut<'a, T: 'a> { /* fields omitted */ }
A mutable MatrixSliceMut
This struct provides a mutable slice into a matrix.
The struct contains the upper left point of the slice and the width and height of the slice.
Methods
impl<'a, T> MatrixSliceMut<'a, T>
[src]
fn from_matrix(mat: &'a mut Matrix<T>,
start: [usize; 2],
rows: usize,
cols: usize)
-> MatrixSliceMut<T>
start: [usize; 2],
rows: usize,
cols: usize)
-> MatrixSliceMut<T>
Produce a MatrixSliceMut
from a mutable Matrix
Examples
use rulinalg::matrix::{Matrix, MatrixSliceMut}; let mut a = Matrix::new(3,3, (0..9).collect::<Vec<usize>>()); let slice = MatrixSliceMut::from_matrix(&mut a, [1,1], 2, 2);
unsafe fn from_raw_parts(ptr: *mut T,
rows: usize,
cols: usize,
row_stride: usize)
-> MatrixSliceMut<'a, T>
rows: usize,
cols: usize,
row_stride: usize)
-> MatrixSliceMut<'a, T>
Creates a MatrixSliceMut
from raw parts.
Examples
use rulinalg::matrix::MatrixSliceMut; let mut a = vec![4.0; 16]; unsafe { // Create a mutable 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 = MatrixSliceMut::from_raw_parts(a.as_mut_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.
Trait Implementations
impl<'a, T> BaseMatrix<T> for MatrixSliceMut<'a, T>
[src]
fn rows(&self) -> usize
Rows in the matrix.
fn cols(&self) -> usize
Columns in the matrix.
fn row_stride(&self) -> usize
Row stride in the matrix.
fn as_ptr(&self) -> *const T
Top left index of the matrix.
fn is_empty(&self) -> bool
Returns true if the matrix contais no elements
fn as_slice(&self) -> MatrixSlice<T>
Returns a MatrixSlice
over the whole matrix. Read more
unsafe fn get_unchecked(&self, index: [usize; 2]) -> &T
Get a reference to a point in the matrix without bounds checking.
fn col(&self, index: usize) -> Column<T>
Returns the column of a matrix at the given index. None
if the index is out of bounds. Read more
unsafe fn col_unchecked(&self, index: usize) -> Column<T>
Returns the column of a matrix at the given index without doing a bounds check. Read more
fn row(&self, index: usize) -> Row<T>
Returns the row of a matrix at the given index. Read more
unsafe fn row_unchecked(&self, index: usize) -> Row<T>
Returns the row of a matrix at the given index without doing unbounds checking Read more
fn iter<'a>(&self) -> SliceIter<'a, T> where T: 'a
Returns an iterator over the matrix data. Read more
fn col_iter(&self) -> Cols<T>
Iterate over the columns of the matrix. Read more
fn row_iter(&self) -> Rows<T>
Iterate over the rows of the matrix. Read more
fn diag_iter(&self, k: DiagOffset) -> Diagonal<T, Self>
Iterate over diagonal entries Read more
fn sum_rows(&self) -> Vector<T> where T: Copy + Zero + Add<T, Output=T>
The sum of the rows of the matrix. Read more
fn sum_cols(&self) -> Vector<T> where T: Copy + Zero + Add<T, Output=T>
The sum of the columns of the matrix. Read more
fn norm<N: MatrixNorm<T, Self>>(&self, norm: N) -> T where T: Float
Compute given matrix norm for matrix. Read more
fn metric<'a, 'b, B, M>(&'a self, mat: &'b B, metric: M) -> T where B: 'b + BaseMatrix<T>, M: MatrixMetric<'a, 'b, T, Self, B>
Compute the metric distance between two matrices. Read more
fn sum(&self) -> T where T: Copy + Zero + Add<T, Output=T>
The sum of all elements in the matrix Read more
fn min(&self, axis: Axes) -> Vector<T> where T: Copy + PartialOrd
The min of the specified axis of the matrix. Read more
fn max(&self, axis: Axes) -> Vector<T> where T: Copy + PartialOrd
The max of the specified axis of the matrix. Read more
fn into_matrix(self) -> Matrix<T> where T: Copy
Convert the matrix struct into a owned Matrix.
fn select_rows<'a, I>(&self, rows: I) -> Matrix<T> where T: Copy,
I: IntoIterator<Item=&'a usize>,
I::IntoIter: ExactSizeIterator + Clone
I: IntoIterator<Item=&'a usize>,
I::IntoIter: ExactSizeIterator + Clone
Select rows from matrix Read more
fn select_cols<'a, I>(&self, cols: I) -> Matrix<T> where T: Copy,
I: IntoIterator<Item=&'a usize>,
I::IntoIter: ExactSizeIterator + Clone
I: IntoIterator<Item=&'a usize>,
I::IntoIter: ExactSizeIterator + Clone
Select columns from matrix Read more
fn elemul(&self, m: &Self) -> Matrix<T> where T: Copy + Mul<T, Output=T>
The elementwise product of two matrices. Read more
fn elediv(&self, m: &Self) -> Matrix<T> where T: Copy + Div<T, Output=T>
The elementwise division of two matrices. Read more
fn select(&self, rows: &[usize], cols: &[usize]) -> Matrix<T> where T: Copy
Select block matrix from matrix Read more
fn hcat<S>(&self, m: &S) -> Matrix<T> where T: Copy, S: BaseMatrix<T>
Horizontally concatenates two matrices. With self on the left. Read more
fn vcat<S>(&self, m: &S) -> Matrix<T> where T: Copy, S: BaseMatrix<T>
Vertically concatenates two matrices. With self on top. Read more
fn diag(&self) -> Diagonal<T, Self>
Extract the diagonal of the matrix Read more
fn transpose(&self) -> Matrix<T> where T: Copy
Tranposes the given matrix Read more
fn is_diag(&self) -> bool where T: Zero + PartialEq
Checks if matrix is diagonal. Read more
fn solve_u_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error> where T: Any + Float
Solves an upper triangular linear system. Read more
fn solve_l_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error> where T: Any + Float
Solves a lower triangular linear system. Read more
fn split_at(&self, mid: usize, axis: Axes) -> (MatrixSlice<T>, MatrixSlice<T>)
Split the matrix at the specified axis returning two MatrixSlice
s. Read more
fn sub_slice<'a>(&self,
start: [usize; 2],
rows: usize,
cols: usize)
-> MatrixSlice<'a, T> where T: 'a
start: [usize; 2],
rows: usize,
cols: usize)
-> MatrixSlice<'a, T> where T: 'a
Produce a MatrixSlice
from an existing matrix. Read more
impl<'a, T> BaseMatrixMut<T> for MatrixSliceMut<'a, T>
[src]
fn as_mut_ptr(&mut self) -> *mut T
Top left index of the slice.
fn as_mut_slice(&mut self) -> MatrixSliceMut<T>
Returns a MatrixSliceMut
over the whole matrix. Read more
unsafe fn get_unchecked_mut(&mut self, index: [usize; 2]) -> &mut T
Get a mutable reference to a point in the matrix without bounds checks.
fn iter_mut<'a>(&mut self) -> SliceIterMut<'a, T> where T: 'a
Returns a mutable iterator over the matrix. Read more
fn col_mut(&mut self, index: usize) -> ColumnMut<T>
Returns a mutable reference to the column of a matrix at the given index. None
if the index is out of bounds. Read more
unsafe fn col_unchecked_mut(&mut self, index: usize) -> ColumnMut<T>
Returns a mutable reference to the column of a matrix at the given index without doing a bounds check. Read more
fn row_mut(&mut self, index: usize) -> RowMut<T>
Returns a mutable reference to the row of a matrix at the given index. None
if the index is out of bounds. Read more
unsafe fn row_unchecked_mut(&mut self, index: usize) -> RowMut<T>
Returns a mutable reference to the row of a matrix at the given index without doing a bounds check. Read more
fn swap_rows(&mut self, a: usize, b: usize)
Swaps two rows in a matrix. Read more
fn swap_cols(&mut self, a: usize, b: usize)
Swaps two columns in a matrix. Read more
fn col_iter_mut(&mut self) -> ColsMut<T>
Iterate over the mutable columns of the matrix. Read more
fn row_iter_mut(&mut self) -> RowsMut<T>
Iterate over the mutable rows of the matrix. Read more
fn diag_iter_mut(&mut self, k: DiagOffset) -> DiagonalMut<T, Self>
Iterate over diagonal entries mutably Read more
fn set_to<M: BaseMatrix<T>>(self, target: M) where T: Copy
Sets the underlying matrix data to the target data. Read more
fn apply(self, f: &Fn(T) -> T) -> Self where T: Copy
Applies a function to each element in the matrix. Read more
fn split_at_mut(&mut self,
mid: usize,
axis: Axes)
-> (MatrixSliceMut<T>, MatrixSliceMut<T>)
mid: usize,
axis: Axes)
-> (MatrixSliceMut<T>, MatrixSliceMut<T>)
Split the matrix at the specified axis returning two MatrixSliceMut
s. Read more
fn sub_slice_mut<'a>(&mut self,
start: [usize; 2],
rows: usize,
cols: usize)
-> MatrixSliceMut<'a, T> where T: 'a
start: [usize; 2],
rows: usize,
cols: usize)
-> MatrixSliceMut<'a, T> where T: 'a
Produce a MatrixSliceMut
from an existing matrix. Read more
impl<'a, T> Index<[usize; 2]> for MatrixSliceMut<'a, T>
[src]
Indexes mutable matrix slice. Takes row index first then column.
type Output = T
The returned type after indexing
fn index(&self, idx: [usize; 2]) -> &T
The method for the indexing (container[index]
) operation
impl<'a, T> IndexMut<[usize; 2]> for MatrixSliceMut<'a, T>
[src]
Indexes mutable matrix slice.
Takes row index first then column.
fn index_mut(&mut self, idx: [usize; 2]) -> &mut T
The method for the mutable indexing (container[index]
) operation
impl<'a, T> Mul<T> for MatrixSliceMut<'a, T> where T: Copy + Mul<T, Output=T>
[src]
Scalar multiplication with matrix slice.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, f: T) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, T> Mul<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Mul<T, Output=T>
[src]
Scalar multiplication with matrix slice.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, f: &T) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, T> Mul<T> for &'b MatrixSliceMut<'a, T> where T: Copy + Mul<T, Output=T>
[src]
Scalar multiplication with matrix slice.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, f: T) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, T> Mul<&'c T> for &'b MatrixSliceMut<'a, T> where T: Copy + Mul<T, Output=T>
[src]
Scalar multiplication with matrix slice.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, f: &T) -> Matrix<T>
The method for the *
operator
impl<'a, T> Div<T> for MatrixSliceMut<'a, T> where T: Copy + Div<T, Output=T>
[src]
Scalar division with matrix slice.
type Output = Matrix<T>
The resulting type after applying the /
operator
fn div(self, f: T) -> Matrix<T>
The method for the /
operator
impl<'a, 'b, T> Div<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Div<T, Output=T>
[src]
Scalar division with matrix slice.
type Output = Matrix<T>
The resulting type after applying the /
operator
fn div(self, f: &T) -> Matrix<T>
The method for the /
operator
impl<'a, 'b, T> Div<T> for &'b MatrixSliceMut<'a, T> where T: Copy + Div<T, Output=T>
[src]
Scalar division with matrix slice.
type Output = Matrix<T>
The resulting type after applying the /
operator
fn div(self, f: T) -> Matrix<T>
The method for the /
operator
impl<'a, 'b, 'c, T> Div<&'c T> for &'b MatrixSliceMut<'a, T> where T: Copy + Div<T, Output=T>
[src]
Scalar division with matrix slice.
type Output = Matrix<T>
The resulting type after applying the /
operator
fn div(self, f: &T) -> Matrix<T>
The method for the /
operator
impl<'a, T> Add<T> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Scalar addition with matrix slice.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, f: T) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, T> Add<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Scalar addition with matrix slice.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, f: &T) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, T> Add<T> for &'b MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Scalar addition with matrix slice.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, f: T) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, T> Add<&'c T> for &'b MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Scalar addition with matrix slice.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, f: &T) -> Matrix<T>
The method for the +
operator
impl<'a, T> Sub<T> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Scalar subtraction with matrix slice.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, f: T) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, T> Sub<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Scalar subtraction with matrix slice.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, f: &T) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, T> Sub<T> for &'b MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Scalar subtraction with matrix slice.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, f: T) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, T> Sub<&'c T> for &'b MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Scalar subtraction with matrix slice.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, f: &T) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, T> Add<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: MatrixSlice<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, T> Add<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: MatrixSlice<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, T> Add<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: &MatrixSlice<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: &MatrixSlice<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, T> Add<MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: MatrixSliceMut<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, T> Add<MatrixSliceMut<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: MatrixSliceMut<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, T> Add<&'c MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: &MatrixSliceMut<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, 'd, T> Add<&'d MatrixSliceMut<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition between the slices.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, s: &MatrixSliceMut<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, T> Sub<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: MatrixSlice<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, T> Sub<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: MatrixSlice<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, T> Sub<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: &MatrixSlice<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: &MatrixSlice<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, T> Sub<MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: MatrixSliceMut<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, T> Sub<MatrixSliceMut<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: MatrixSliceMut<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, T> Sub<&'c MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: &MatrixSliceMut<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, 'd, T> Sub<&'d MatrixSliceMut<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction between the slices.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, s: &MatrixSliceMut<T>) -> Matrix<T>
The method for the -
operator
impl<'a, T> Add<Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise
addition
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, m: Matrix<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, T> Add<Matrix<T>> for &'b MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise
addition
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, m: Matrix<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, T> Add<&'b Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise
addition
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, m: &Matrix<T>) -> Matrix<T>
The method for the +
operator
impl<'a, 'b, 'c, T> Add<&'c Matrix<T>> for &'b MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise
addition
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the +
operator
fn add(self, m: &Matrix<T>) -> Matrix<T>
The method for the +
operator
impl<'a, T> Sub<Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise
subtraction
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, m: Matrix<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, T> Sub<Matrix<T>> for &'b MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise
subtraction
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, m: Matrix<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, T> Sub<&'b Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise
subtraction
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, m: &Matrix<T>) -> Matrix<T>
The method for the -
operator
impl<'a, 'b, 'c, T> Sub<&'c Matrix<T>> for &'b MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise
subtraction
between Matrix
and MatrixSlice
.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn sub(self, m: &Matrix<T>) -> Matrix<T>
The method for the -
operator
impl<'a, T> AddAssign<T> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs addition assignment between a mutable matrix slice and a scalar.
fn add_assign(&mut self, _rhs: T)
The method for the +=
operator
impl<'a, 'b, T> AddAssign<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs addition assignment between a mutable matrix slice and a scalar.
fn add_assign(&mut self, _rhs: &T)
The method for the +=
operator
impl<'a, T> SubAssign<T> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs subtraction assignment between a mutable matrix slice and a scalar.
fn sub_assign(&mut self, _rhs: T)
The method for the -=
operator
impl<'a, 'b, T> SubAssign<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs subtraction assignment between a mutable matrix slice and a scalar.
fn sub_assign(&mut self, _rhs: &T)
The method for the -=
operator
impl<'a, T> DivAssign<T> for MatrixSliceMut<'a, T> where T: Copy + Div<T, Output=T>
[src]
Performs division assignment between a mutable matrix slice and a scalar.
fn div_assign(&mut self, _rhs: T)
The method for the /=
operator
impl<'a, 'b, T> DivAssign<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Div<T, Output=T>
[src]
Performs division assignment between a mutable matrix slice and a scalar.
fn div_assign(&mut self, _rhs: &T)
The method for the /=
operator
impl<'a, T> MulAssign<T> for MatrixSliceMut<'a, T> where T: Copy + Mul<T, Output=T>
[src]
Performs multiplication assignment between a mutable matrix slice and a scalar.
fn mul_assign(&mut self, _rhs: T)
The method for the *=
operator
impl<'a, 'b, T> MulAssign<&'b T> for MatrixSliceMut<'a, T> where T: Copy + Mul<T, Output=T>
[src]
Performs multiplication assignment between a mutable matrix slice and a scalar.
fn mul_assign(&mut self, _rhs: &T)
The method for the *=
operator
impl<'a, T> AddAssign<Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition assignment between two matrices.
fn add_assign(&mut self, _rhs: Matrix<T>)
The method for the +=
operator
impl<'a, 'b, T> AddAssign<&'b Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition assignment between two matrices.
fn add_assign(&mut self, _rhs: &Matrix<T>)
The method for the +=
operator
impl<'a, T> SubAssign<Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction assignment between two matrices.
fn sub_assign(&mut self, _rhs: Matrix<T>)
The method for the -=
operator
impl<'a, 'b, T> SubAssign<&'b Matrix<T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction assignment between two matrices.
fn sub_assign(&mut self, _rhs: &Matrix<T>)
The method for the -=
operator
impl<'a, 'b, T> AddAssign<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition assignment between two matrices.
fn add_assign(&mut self, _rhs: MatrixSlice<T>)
The method for the +=
operator
impl<'a, 'b, 'c, T> AddAssign<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition assignment between two matrices.
fn add_assign(&mut self, _rhs: &MatrixSlice<T>)
The method for the +=
operator
impl<'a, 'b, T> SubAssign<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction assignment between two matrices.
fn sub_assign(&mut self, _rhs: MatrixSlice<T>)
The method for the -=
operator
impl<'a, 'b, 'c, T> SubAssign<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction assignment between two matrices.
fn sub_assign(&mut self, _rhs: &MatrixSlice<T>)
The method for the -=
operator
impl<'a, 'b, T> AddAssign<MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition assignment between two matrices.
fn add_assign(&mut self, _rhs: MatrixSliceMut<T>)
The method for the +=
operator
impl<'a, 'b, 'c, T> AddAssign<&'c MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Add<T, Output=T>
[src]
Performs elementwise addition assignment between two matrices.
fn add_assign(&mut self, _rhs: &MatrixSliceMut<T>)
The method for the +=
operator
impl<'a, 'b, T> SubAssign<MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction assignment between two matrices.
fn sub_assign(&mut self, _rhs: MatrixSliceMut<T>)
The method for the -=
operator
impl<'a, 'b, 'c, T> SubAssign<&'c MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Copy + Sub<T, Output=T>
[src]
Performs elementwise subtraction assignment between two matrices.
fn sub_assign(&mut self, _rhs: &MatrixSliceMut<T>)
The method for the -=
operator
impl<'a, T> Neg for MatrixSliceMut<'a, T> where T: Neg<Output=T> + Copy
[src]
Gets negative of matrix slice.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn neg(self) -> Matrix<T>
The method for the unary -
operator
impl<'a, 'b, T> Neg for &'b MatrixSliceMut<'a, T> where T: Neg<Output=T> + Copy
[src]
Gets negative of matrix slice.
type Output = Matrix<T>
The resulting type after applying the -
operator
fn neg(self) -> Matrix<T>
The method for the unary -
operator
impl<'a, T> IntoIterator for MatrixSliceMut<'a, T>
[src]
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = SliceIterMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a MatrixSliceMut<'a, T>
[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = SliceIter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a mut MatrixSliceMut<'a, T>
[src]
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = SliceIterMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a, T> Mul<Matrix<T>> for MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: Matrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, T> Mul<&'b Matrix<T>> for MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: &Matrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, T> Mul<Matrix<T>> for &'b MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: Matrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, T> Mul<&'c Matrix<T>> for &'b MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: &Matrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, T> Mul<MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: MatrixSlice<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, T> Mul<&'c MatrixSlice<'b, T>> for MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: &MatrixSlice<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, T> Mul<MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: MatrixSlice<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSlice<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: &MatrixSlice<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, T> Mul<MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: MatrixSliceMut<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, T> Mul<&'c MatrixSliceMut<'b, T>> for MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: &MatrixSliceMut<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, T> Mul<MatrixSliceMut<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: MatrixSliceMut<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'c, 'd, T> Mul<&'d MatrixSliceMut<'b, T>> for &'c MatrixSliceMut<'a, T> where T: Any + Copy + Zero + Add<T, Output=T> + Mul<T, Output=T>
[src]
Multiplies two matrices together.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, m: &MatrixSliceMut<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'm, T> Mul<PermutationMatrix<T>> for &'a MatrixSliceMut<'m, T> where T: Zero + Clone
[src]
Right-multiply a matrix by a permutation matrix.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, rhs: PermutationMatrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'm, T> Mul<&'b PermutationMatrix<T>> for &'a MatrixSliceMut<'m, T> where T: Zero + Clone
[src]
Right-multiply a matrix by a permutation matrix.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, rhs: &'b PermutationMatrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'm, T> Mul<PermutationMatrix<T>> for MatrixSliceMut<'m, T> where T: Zero + Clone
[src]
Right-multiply a matrix by a permutation matrix.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, rhs: PermutationMatrix<T>) -> Matrix<T>
The method for the *
operator
impl<'a, 'b, 'm, T> Mul<&'b PermutationMatrix<T>> for MatrixSliceMut<'m, T> where T: Zero + Clone
[src]
Right-multiply a matrix by a permutation matrix.
type Output = Matrix<T>
The resulting type after applying the *
operator
fn mul(self, rhs: &'b PermutationMatrix<T>) -> Matrix<T>
The method for the *
operator