Table of Contents

Delegate DirectILKernelGenerator.HistogramCountKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Fused unweighted histogram count kernel: for each sample compute its bin index (as in DirectILKernelGenerator.HistogramIndicesKernel) and increment the count directly — no int64 indices array and no separate bincount pass. Out-of-range/NaN samples are skipped.

public delegate void DirectILKernelGenerator.HistogramCountKernel(void* samples, long count, void* binEdges, double first, double last, int nbins, long* counts)

Parameters

samples void*

Contiguous samples in dtype B.

count long

Number of samples.

binEdges void*

Contiguous nbins+1 bin edges in dtype B.

first double

Lower outer edge (double).

last double

Upper outer edge (double).

nbins int

Number of bins.

counts long*

Output int64 count buffer of length nbins (pre-zeroed).