Skip to main content

scale_assign

Function scale_assign 

Source
pub fn scale_assign<T>(backend: ComputeBackend, y: &mut Field<T>, s: f64)
where T: Copy + Send + Sync + Mul<f64, Output = T>,
Expand description

In-place uniform scaling y[i] *= s. Allocation-free.

Units: the field becomes [y] * [s]; s is a bare number here.