Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement dpnp.nanargmax, dpnp.nanargmin, dpnp.nanmax, and dpnp.nanmin #1646

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions dpnp/dpnp_iface_mathematical.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def _append_to_diff_array(a, axis, combined, values):

Scalar value (including case with 0d array) is expanded to an array
with length=1 in the direction of axis and the shape of the input array `a`
in along all other axes.
Note, if `values` is a scalar. then it is converted to 0d array allocating
along all other axes.
Note, if `values` is a scalar, then it is converted to 0d array allocating
on the same SYCL queue as the input array `a` and with the same USM type.

"""
Expand Down Expand Up @@ -1132,7 +1132,9 @@ def fmax(x1, x2, /, out=None, *, where=True, dtype=None, subok=True, **kwargs):
See Also
--------
:obj:`dpnp.maximum` : Element-wise maximum of array elements, propagates NaNs.
:obj:`dpnp.fmin` : Element-wise minimum of array elements, ignore NaNs.
:obj:`dpnp.fmin` : Element-wise minimum of array elements, ignores NaNs.
:obj:`dpnp.max` : The maximum value of an array along a given axis, propagates NaNs..
:obj:`dpnp.nanmax` : The maximum value of an array along a given axis, ignores NaNs.
:obj:`dpnp.minimum` : Element-wise minimum of array elements, propagates NaNs.
:obj:`dpnp.fmod` : Calculate the element-wise remainder of division.

Expand Down Expand Up @@ -1237,7 +1239,9 @@ def fmin(x1, x2, /, out=None, *, where=True, dtype=None, subok=True, **kwargs):
See Also
--------
:obj:`dpnp.minimum` : Element-wise minimum of array elements, propagates NaNs.
:obj:`dpnp.fmax` : Element-wise maximum of array elements, ignore NaNs.
:obj:`dpnp.fmax` : Element-wise maximum of array elements, ignores NaNs.
:obj:`dpnp.min` : The minimum value of an array along a given axis, propagates NaNs.
:obj:`dpnp.nanmin` : The minimum value of an array along a given axis, ignores NaNs.
:obj:`dpnp.maximum` : Element-wise maximum of array elements, propagates NaNs.
:obj:`dpnp.fmod` : Calculate the element-wise remainder of division.

Expand Down
Loading