Trait ScalarRef

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

Trait for setting values in a matrix.

Required Methods§

Source

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

Get a 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> ScalarRef for Mat<ROWS, COLS, E, Descriptor>
where E: MatEl + NdFloat, Self: ConstLayout,