Skip to content

lazymatrix::SubScalarAssign ​

LazyMatrix for Rust · 0.8.1

Source

rust
pub trait SubScalarAssign<F: Scalar>

In-place broadcast subtraction of a scalar: self[i] -= k.

Used to apply the − 1·(cᵀw) centering correction in the forward operator.

Methods ​

sub_scalar_assign ​

rust
fn sub_scalar_assign(&mut self, k: F)

Source

Released under the MIT and Apache 2.0 licenses.