pub struct VecMutView<'a, T: Debug + Display + Copy + Sized> { /* private fields */ }
Expand description
Provide mutable window on array
Trait Implementations§
Source§impl<T: Debug + Display + Copy + Sized> ArrayView1<T> for VecMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> ArrayView1<T> for VecMutView<'_, T>
Source§fn dot(&self, other: &dyn ArrayView1<T>) -> Twhere
T: Number,
fn dot(&self, other: &dyn ArrayView1<T>) -> Twhere
T: Number,
return dot product with another array
Source§fn max(&self) -> Twhere
T: Number + PartialOrd,
fn max(&self) -> Twhere
T: Number + PartialOrd,
return max value from the view
Source§fn min(&self) -> Twhere
T: Number + PartialOrd,
fn min(&self) -> Twhere
T: Number + PartialOrd,
return min value from the view
Source§fn argmax(&self) -> usizewhere
T: Number + PartialOrd,
fn argmax(&self) -> usizewhere
T: Number + PartialOrd,
return the position of the max value of the view
Source§fn max_diff(&self, other: &dyn ArrayView1<T>) -> T
fn max_diff(&self, other: &dyn ArrayView1<T>) -> T
return max differences in array
Source§impl<T: Debug + Display + Copy + Sized> MutArray<T, usize> for VecMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> MutArray<T, usize> for VecMutView<'_, 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> MutArrayView1<T> for VecMutView<'_, T>
impl<T: Debug + Display + Copy + Sized> MutArrayView1<T> for VecMutView<'_, T>
Source§fn pow_mut(&mut self, p: T)where
T: RealNumber,
fn pow_mut(&mut self, p: T)where
T: RealNumber,
return a mutable view of values at power
p
Source§fn argsort_mut(&mut self) -> Vec<usize>where
T: Number + PartialOrd,
fn argsort_mut(&mut self) -> Vec<usize>where
T: Number + PartialOrd,
return vector of indices for sorted elements
Source§fn softmax_mut(&mut self)where
T: RealNumber,
fn softmax_mut(&mut self)where
T: RealNumber,
return softmax values
Auto Trait Implementations§
impl<'a, T> Freeze for VecMutView<'a, T>
impl<'a, T> RefUnwindSafe for VecMutView<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for VecMutView<'a, T>where
T: Send,
impl<'a, T> Sync for VecMutView<'a, T>where
T: Sync,
impl<'a, T> Unpin for VecMutView<'a, T>
impl<'a, T> !UnwindSafe for VecMutView<'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