Skip to content

lazymatrix::ScaledSubSlice ​

LazyMatrix for Rust · 0.8.1

Source

rust
pub trait ScaledSubSlice<F: Scalar>

In-place scaled subtraction against a coefficient slice: self[i] -= k · coeffs[i].

Used to apply the − Σu · c centering correction in the transpose operator.

Methods ​

scaled_sub_slice ​

rust
fn scaled_sub_slice(&mut self, k: F, coeffs: &[F])

Source

Released under the MIT and Apache 2.0 licenses.