Table of Contents

Delegate DirectILKernelGenerator.DivModKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Fused divmod kernel over contiguous same-dtype buffers: for each i, q[i] = floor(a[i]/b[i]) and r[i] = a[i] - q[i]b[i] (floored), both produced by a single NDDivision Divmod call.

public delegate void DirectILKernelGenerator.DivModKernel(void* a, void* b, void* q, void* r, long n)

Parameters

a void*
Fused divmod kernel over contiguous same-dtype buffers: for each i, q[i] = floor(a[i]/b[i]) and r[i] = a[i] - q[i]b[i] (floored), both produced by a single Divmod call.
b void*
Fused divmod kernel over contiguous same-dtype buffers: for each i, q[i] = floor(a[i]/b[i]) and r[i] = a[i] - q[i]b[i] (floored), both produced by a single Divmod call.
q void*
Fused divmod kernel over contiguous same-dtype buffers: for each i, q[i] = floor(a[i]/b[i]) and r[i] = a[i] - q[i]b[i] (floored), both produced by a single Divmod call.
r void*
Fused divmod kernel over contiguous same-dtype buffers: for each i, q[i] = floor(a[i]/b[i]) and r[i] = a[i] - q[i]b[i] (floored), both produced by a single Divmod call.
n long
Fused divmod kernel over contiguous same-dtype buffers: for each i, q[i] = floor(a[i]/b[i]) and r[i] = a[i] - q[i]b[i] (floored), both produced by a single Divmod call.