lazymatrix::DenseNormalize
LazyMatrix for Rust · 0.8.1
rust
pub trait DenseNormalize<F: Scalar>: MatrixWrite<F>Infallible, in-place normalization of writable dense storage.
This capability performs no I/O and does not change shape or storage layout. Apply subtraction and division only for the active components, preserving negative and nonfinite parameters. Do not recompute statistics.
Methods
normalize_in_place
rust
fn normalize_in_place(&mut self, centers: Option<&[F]>, scales: Option<&[F]>)Normalize each entry in the existing storage.
Panics
Validate parameter lengths and reject exact zero scales before writing.

