Skip to content

Commit

Permalink
Apply review comments 3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKalistratov committed Dec 6, 2024
1 parent ece79cb commit 6035300
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dpnp/dpnp_iface_histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def histogramdd(sample, bins=10, range=None, weights=None, density=False):
weights belonging to the samples falling into each bin.
Default: ``None``
density : {bool}, optional
density : bool, optional
If ``False``, the default, returns the number of samples in each bin.
If ``True``, returns the probability *density* function at the bin,
``bin_count / sample_count / bin_volume``.
Expand All @@ -963,10 +963,10 @@ def histogramdd(sample, bins=10, range=None, weights=None, density=False):
Returns
-------
H : {dpnp.ndarray}
H : dpnp.ndarray
The multidimensional histogram of sample x. See density and weights
for the different possible semantics.
edges : {list of dpnp.ndarray}
edges : list of {dpnp.ndarray or usm_ndarray}
A list of D arrays describing the bin edges for each dimension.
See Also
Expand Down Expand Up @@ -1039,4 +1039,8 @@ def histogramdd(sample, bins=10, range=None, weights=None, density=False):
n = n / dpnp.reshape(diff, shape=shape)
n /= s

for i, b in enumerate(bins):
if dpnp.is_supported_array_type(b):
bin_edges_view_list[i] = b

return n, bin_edges_view_list

0 comments on commit 6035300

Please sign in to comment.