nk_status_t nk_sparse_intersect_u16_best(
nk_u16_t const *a,
nk_u16_t const *b,
nk_size_t a_length,
nk_size_t b_length,
nk_u16_t *result,
nk_size_t *count,
nk_capability_t capabilities,
nk_stream_t stream); | Symbol | a, b, result | Backends |
|---|---|---|
nk_sparse_intersect_u16_best | nk_u16_t | 6 |
nk_sparse_intersect_u32_best | nk_u32_t | 6 |
nk_sparse_intersect_u64_best | nk_u64_t | 6 |
Backends
nk_sparse_intersect_u16serialneonsve2icelakehaswellturinnk_sparse_intersect_u32serialneonsve2icelakehaswellturinnk_sparse_intersect_u64serialneonsve2icelakehaswellturin
Parameters
a | in | The first sorted array of indices. |
|---|---|---|
b | in | The second sorted array of indices. |
a_length | in | The number of elements in the first array. |
b_length | in | The number of elements in the second array. |
result | out | Output buffer for intersection elements, or NULL to count only. |
count | out | The output intersection count. |
capabilities | in | One device's capabilities, like nk_cpu_capabilities_enabled reports. |
stream | in | Null on the CPU, or the GPU stream of that device to queue on. |
Notes
Inputs must be sorted in ascending order and contain unique elements.
Statuses
nk_missing_kernel_kNo capability incapabilitieshas it.