pub fn sub<T: Element>(
ctx: &GpuContext,
a: &Buffer<T>,
b: &Buffer<T>,
c: &Buffer<T>,
)Expand description
Subtracts two buffers element-wise.
Computes c[i] = a[i] - b[i] for all elements.
ยงPanics
- Buffer length exceeds
u32::MAX. - (debug) Buffer lengths do not match.
- (debug) Buffer belongs to a different device than
ctx.