Trait ScalarMut

Source
pub trait ScalarMut: ScalarRef {
    // Required method
    fn scalar_mut(
        &mut self,
        index: <Self as Indexable>::Index,
    ) -> &mut Self::Scalar;
}
Expand description

Trait for setting values in a matrix.

Required Methods§

Source

fn scalar_mut(&mut self, index: <Self as Indexable>::Index) -> &mut Self::Scalar

Get a mutable reference to a scalar at a specified index.

§Parameters
  • index: The index of the scalar to access.
§Returns
  • A mutable reference to the scalar at the specified index.

Implementors§

Source§

impl<E, const ROWS: usize, const COLS: usize, Descriptor: Descriptor> ScalarMut for Mat<ROWS, COLS, E, Descriptor>
where E: MatEl + NdFloat, Self: ConstLayout + RawSliceMut,