Table of Contents

Delegate DirectILKernelGenerator.QuantileKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

The emitted quantile kernel: one call computes every row (reduced line) of the staged data.

public delegate void DirectILKernelGenerator.QuantileKernel(void* srcBase, void* scratchBase, long outer, int n, int* kSorted, int nKs, int* cellIndex, double* cellWeight, double* q, int nQs, void* dstBase, long dstOuterStride, int ignoreNaN, int* rowKScratch, long* rowRaw, double* rowWeight, int* kExact, int nKExact)

Parameters

srcBase void*

The staged data: outer contiguous lines of n elements of the data's dtype.

scratchBase void*

A scratch line of n elements (the partition's working copy).

outer long

The number of lines.

n int

The line's length (at least 1).

kSorted int*

The ascending, distinct partition indexes (the plain path; unused by the nan path).

nKs int

How many partition indexes.

cellIndex int*

The plain path's plan: per quantile, the previous and next index (in [0, n - 1]).

cellWeight double*

The plain path's plan: per quantile, the weight t and 1 - t (values of q's dtype).

q double*

The quantiles (values of q's dtype), read by the nan path to plan each line.

nQs int

The number of quantiles.

dstBase void*

The result buffer (the kernel's output dtype), quantile-major.

dstOuterStride long

The distance in elements between two quantiles' blocks (0 for a scalar q).

ignoreNaN int

1 for the nan forms.

rowKScratch int*

The nan path's partition indexes (2 per quantile).

rowRaw long*

The nan path's neighbours (2 per quantile).

rowWeight double*

The nan path's weights (2 per quantile).

kExact int*

NumPy's own partition list for float data (FloatPartitionKth(long*, int, long, bool, bool, int*)): the plain path partitions a row at it with NumPy's statements when the arrangement shows (the row holds both zero signs, or NaNs of different bits); empty for other data.

nKExact int

How many positions kExact holds.