[−][src]Struct rulinalg::matrix::ColumnMut
Mutable column of a matrix.
This struct points to a MatrixSliceMut
making up a column in a matrix.
You can deref this struct to retrieve
the raw column MatrixSliceMut.
Example
use rulinalg::matrix::BaseMatrixMut; let mut mat = matrix![1.0, 2.0; 3.0, 4.0]; { let mut column = mat.col_mut(1); *column += 2.0; } let expected = matrix![1.0, 4.0; 3.0, 6.0]; assert_matrix_eq!(mat, expected);
Methods from Deref<Target = MatrixSliceMut<'a, T>>
Trait Implementations
impl<'a, T> BaseMatrix<T> for ColumnMut<'a, T>[src]
fn rows(&self) -> usize[src]
fn cols(&self) -> usize[src]
fn row_stride(&self) -> usize[src]
fn as_ptr(&self) -> *const T[src]
fn is_empty(&self) -> bool[src]
fn as_slice(&self) -> MatrixSlice<T>[src]
unsafe fn get_unchecked(&self, index: [usize; 2]) -> &T[src]
fn col(&self, index: usize) -> Column<T>[src]
unsafe fn col_unchecked(&self, index: usize) -> Column<T>[src]
fn row(&self, index: usize) -> Row<T>[src]
unsafe fn row_unchecked(&self, index: usize) -> Row<T>[src]
ⓘImportant traits for SliceIter<'a, T>fn iter<'a>(&self) -> SliceIter<'a, T> where
T: 'a, [src]
ⓘImportant traits for SliceIter<'a, T>
T: 'a,
ⓘImportant traits for Cols<'a, T>fn col_iter(&self) -> Cols<T>[src]
ⓘImportant traits for Cols<'a, T>
ⓘImportant traits for Rows<'a, T>fn row_iter(&self) -> Rows<T>[src]
ⓘImportant traits for Rows<'a, T>
ⓘImportant traits for Diagonal<'a, T, M>fn diag_iter(&self, k: DiagOffset) -> Diagonal<T, Self>[src]
ⓘImportant traits for Diagonal<'a, T, M>
fn sum_rows(&self) -> Vector<T> where
T: Copy + Zero + Add<T, Output = T>, [src]
T: Copy + Zero + Add<T, Output = T>,
fn sum_cols(&self) -> Vector<T> where
T: Copy + Zero + Add<T, Output = T>, [src]
T: Copy + Zero + Add<T, Output = T>,
fn norm<N: MatrixNorm<T, Self>>(&self, norm: N) -> T where
T: Float, [src]
T: Float,
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>, [src]
B: 'b + BaseMatrix<T>,
M: MatrixMetric<'a, 'b, T, Self, B>,
fn sum(&self) -> T where
T: Copy + Zero + Add<T, Output = T>, [src]
T: Copy + Zero + Add<T, Output = T>,
fn min(&self, axis: Axes) -> Vector<T> where
T: Copy + PartialOrd, [src]
T: Copy + PartialOrd,
fn max(&self, axis: Axes) -> Vector<T> where
T: Copy + PartialOrd, [src]
T: Copy + PartialOrd,
fn into_matrix(self) -> Matrix<T> where
T: Copy, [src]
T: Copy,
fn select_rows<'a, I>(&self, rows: I) -> Matrix<T> where
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone, [src]
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone,
fn select_cols<'a, I>(&self, cols: I) -> Matrix<T> where
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone, [src]
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone,
fn elemul(&self, m: &Self) -> Matrix<T> where
T: Copy + Mul<T, Output = T>, [src]
T: Copy + Mul<T, Output = T>,
fn elediv(&self, m: &Self) -> Matrix<T> where
T: Copy + Div<T, Output = T>, [src]
T: Copy + Div<T, Output = T>,
fn select(&self, rows: &[usize], cols: &[usize]) -> Matrix<T> where
T: Copy, [src]
T: Copy,
fn hcat<S>(&self, m: &S) -> Matrix<T> where
T: Copy,
S: BaseMatrix<T>, [src]
T: Copy,
S: BaseMatrix<T>,
fn vcat<S>(&self, m: &S) -> Matrix<T> where
T: Copy,
S: BaseMatrix<T>, [src]
T: Copy,
S: BaseMatrix<T>,
ⓘImportant traits for Diagonal<'a, T, M>fn diag(&self) -> Diagonal<T, Self>[src]
ⓘImportant traits for Diagonal<'a, T, M>
fn transpose(&self) -> Matrix<T> where
T: Copy, [src]
T: Copy,
fn is_diag(&self) -> bool where
T: Zero + PartialEq, [src]
T: Zero + PartialEq,
fn solve_u_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error> where
T: Any + Float, [src]
T: Any + Float,
fn solve_l_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error> where
T: Any + Float, [src]
T: Any + Float,
fn split_at(&self, mid: usize, axis: Axes) -> (MatrixSlice<T>, MatrixSlice<T>)[src]
fn sub_slice<'a>(
&self,
start: [usize; 2],
rows: usize,
cols: usize
) -> MatrixSlice<'a, T> where
T: 'a, [src]
&self,
start: [usize; 2],
rows: usize,
cols: usize
) -> MatrixSlice<'a, T> where
T: 'a,
impl<'a, T> BaseMatrixMut<T> for ColumnMut<'a, T>[src]
fn as_mut_ptr(&mut self) -> *mut T[src]
Top left index of the slice.
fn as_mut_slice(&mut self) -> MatrixSliceMut<T>[src]
unsafe fn get_unchecked_mut(&mut self, index: [usize; 2]) -> &mut T[src]
ⓘImportant traits for SliceIterMut<'a, T>fn iter_mut<'a>(&mut self) -> SliceIterMut<'a, T> where
T: 'a, [src]
ⓘImportant traits for SliceIterMut<'a, T>
T: 'a,
fn col_mut(&mut self, index: usize) -> ColumnMut<T>[src]
unsafe fn col_unchecked_mut(&mut self, index: usize) -> ColumnMut<T>[src]
fn row_mut(&mut self, index: usize) -> RowMut<T>[src]
unsafe fn row_unchecked_mut(&mut self, index: usize) -> RowMut<T>[src]
fn swap_rows(&mut self, a: usize, b: usize)[src]
fn swap_cols(&mut self, a: usize, b: usize)[src]
ⓘImportant traits for ColsMut<'a, T>fn col_iter_mut(&mut self) -> ColsMut<T>[src]
ⓘImportant traits for ColsMut<'a, T>
ⓘImportant traits for RowsMut<'a, T>fn row_iter_mut(&mut self) -> RowsMut<T>[src]
ⓘImportant traits for RowsMut<'a, T>
ⓘImportant traits for DiagonalMut<'a, T, M>fn diag_iter_mut(&mut self, k: DiagOffset) -> DiagonalMut<T, Self>[src]
ⓘImportant traits for DiagonalMut<'a, T, M>
fn set_to<M: BaseMatrix<T>>(self, target: M) where
T: Copy, [src]
T: Copy,
fn apply(self, f: &dyn Fn(T) -> T) -> Self where
T: Copy, [src]
T: Copy,
fn split_at_mut(
&mut self,
mid: usize,
axis: Axes
) -> (MatrixSliceMut<T>, MatrixSliceMut<T>)[src]
&mut self,
mid: usize,
axis: Axes
) -> (MatrixSliceMut<T>, MatrixSliceMut<T>)
fn sub_slice_mut<'a>(
&mut self,
start: [usize; 2],
rows: usize,
cols: usize
) -> MatrixSliceMut<'a, T> where
T: 'a, [src]
&mut self,
start: [usize; 2],
rows: usize,
cols: usize
) -> MatrixSliceMut<'a, T> where
T: 'a,
impl<'a, T: Clone> From<ColumnMut<'a, T>> for Vector<T>[src]
impl<'a, T: 'a> Deref for ColumnMut<'a, T>[src]
type Target = MatrixSliceMut<'a, T>
The resulting type after dereferencing.
fn deref(&self) -> &MatrixSliceMut<'a, T>[src]
impl<'a, T: 'a> DerefMut for ColumnMut<'a, T>[src]
fn deref_mut(&mut self) -> &mut MatrixSliceMut<'a, T>[src]
impl<'a, T> Index<usize> for ColumnMut<'a, T>[src]
impl<'a, T> IndexMut<usize> for ColumnMut<'a, T>[src]
impl<'a, T: Debug + 'a> Debug for ColumnMut<'a, T>[src]
Auto Trait Implementations
impl<'a, T> !Sync for ColumnMut<'a, T>
impl<'a, T> !Send for ColumnMut<'a, T>
impl<'a, T> Unpin for ColumnMut<'a, T>
impl<'a, T> !UnwindSafe for ColumnMut<'a, T>
impl<'a, T> RefUnwindSafe for ColumnMut<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,