rem

Function rem 

Source
pub fn rem<T: Element>(
    ctx: &GpuContext,
    a: &Buffer<T>,
    b: &Buffer<T>,
    c: &Buffer<T>,
)
Expand description

Computes the remainder of division 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.