cupy.histogram

cupy.histogram(x, bins=10)[source]

Computes the histogram of a set of data.

Parameters:
Returns:

(hist, bin_edges) where hist is a cupy.ndarray storing the values of the histogram, and bin_edges is a cupy.ndarray storing the bin edges.

Return type:

tuple

Warning

This function may synchronize the device.