pub struct DenseMatrixMutView<'a, T: Debug + Display + Copy + Sized> { /* private fields */ }
Expand description
Mutable view on dense matrix
Trait Implementations§
Source§impl<T: Debug + Display + Copy + Sized> Array<T, (usize, usize)> for DenseMatrixMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> Array<T, (usize, usize)> for DenseMatrixMutView<'_, T>
Source§impl<T: Debug + Display + Copy + Sized> ArrayView2<T> for DenseMatrixMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> ArrayView2<T> for DenseMatrixMutView<'_, T>
Source§fn argmax(&self, axis: u8) -> Vec<usize>where
T: Number + PartialOrd,
fn argmax(&self, axis: u8) -> Vec<usize>where
T: Number + PartialOrd,
return positions of max values in both rows
Source§fn mean_by(&self, axis: u8) -> Vec<f64>where
T: Number,
fn mean_by(&self, axis: u8) -> Vec<f64>where
T: Number,
return mean value
TODO: this can be made more readable and efficient using the
methods in
linalg::traits::stats
Source§impl<T: Debug + Display + Copy + Sized> MutArray<T, (usize, usize)> for DenseMatrixMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> MutArray<T, (usize, usize)> for DenseMatrixMutView<'_, T>
Source§fn iterator_mut<'b>(
&'b mut self,
axis: u8,
) -> Box<dyn Iterator<Item = &'b mut T> + 'b>
fn iterator_mut<'b>( &'b mut self, axis: u8, ) -> Box<dyn Iterator<Item = &'b mut T> + 'b>
iterate over mutable values
Source§fn div_element_mut(&mut self, pos: S, x: T)
fn div_element_mut(&mut self, pos: S, x: T)
divide element by a given value
Source§fn mul_element_mut(&mut self, pos: S, x: T)
fn mul_element_mut(&mut self, pos: S, x: T)
multiply element for a given value
Source§fn add_element_mut(&mut self, pos: S, x: T)
fn add_element_mut(&mut self, pos: S, x: T)
add a given value to an element
Source§fn sub_element_mut(&mut self, pos: S, x: T)
fn sub_element_mut(&mut self, pos: S, x: T)
subtract a given value to an element
Source§fn sub_scalar_mut(&mut self, x: T)where
T: Number,
fn sub_scalar_mut(&mut self, x: T)where
T: Number,
subtract a given value to all the elements
Source§fn add_scalar_mut(&mut self, x: T)where
T: Number,
fn add_scalar_mut(&mut self, x: T)where
T: Number,
add a given value to all the elements
Source§fn mul_scalar_mut(&mut self, x: T)where
T: Number,
fn mul_scalar_mut(&mut self, x: T)where
T: Number,
multiply a given value to all the elements
Source§fn div_scalar_mut(&mut self, x: T)where
T: Number,
fn div_scalar_mut(&mut self, x: T)where
T: Number,
divide a given value to all the elements
Source§fn add_mut(&mut self, other: &dyn Array<T, S>)
fn add_mut(&mut self, other: &dyn Array<T, S>)
add values from another array to the values of initial array
Source§fn sub_mut(&mut self, other: &dyn Array<T, S>)
fn sub_mut(&mut self, other: &dyn Array<T, S>)
subtract values from another array to the values of initial array
Source§impl<T: Debug + Display + Copy + Sized> MutArrayView2<T> for DenseMatrixMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> MutArrayView2<T> for DenseMatrixMutView<'_, T>
Source§fn pow_mut(&mut self, p: T)where
T: RealNumber,
fn pow_mut(&mut self, p: T)where
T: RealNumber,
update view values at power
p
Auto Trait Implementations§
impl<'a, T> Freeze for DenseMatrixMutView<'a, T>
impl<'a, T> RefUnwindSafe for DenseMatrixMutView<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DenseMatrixMutView<'a, T>where
T: Send,
impl<'a, T> Sync for DenseMatrixMutView<'a, T>where
T: Sync,
impl<'a, T> Unpin for DenseMatrixMutView<'a, T>
impl<'a, T> !UnwindSafe for DenseMatrixMutView<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more