Skip to main content

sub_assign

Function sub_assign 

Source
pub fn sub_assign<T>(backend: ComputeBackend, y: &mut Field<T>, x: &Field<T>)
where T: Copy + Send + Sync + Sub<Output = T>,
Expand description

In-place subtraction y[i] -= x[i]. Allocation-free.

Units: y and x are the same physical quantity.

ยงPanics

Panics if y.len() != x.len().