Skip to content

lazymatrix::DenseNormalize ​

LazyMatrix for Rust · 0.8.1

Source

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]>)

Source

Normalize each entry in the existing storage.

Panics ​

Validate parameter lengths and reject exact zero scales before writing.

Released under the MIT and Apache 2.0 licenses.