Skip to content

Commit 44399a0

Browse files
committed
fix doc-string
1 parent 1d88d49 commit 44399a0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

dpnp/dpnp_iface_statistics.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,15 @@ def max(a, axis=None, out=None, keepdims=False, initial=None, where=True):
363363
364364
Limitations
365365
-----------
366-
Input and output arrays are only supported as either :class:`dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`.
366+
Input and output arrays are only supported as either :class:`dpnp.ndarray`
367+
or :class:`dpctl.tensor.usm_ndarray`.
367368
Parameters `where`, and `initial` are supported only with their default values.
368369
Otherwise ``NotImplementedError`` exception will be raised.
369370
Input array data types are limited by supported DPNP :ref:`Data types`.
370371
371372
See Also
372373
--------
373-
:obj:`dpnp.min` : Return tha minimum of an array.
374+
:obj:`dpnp.min` : Return the minimum of an array.
374375
:obj:`dpnp.maximum` : Element-wise maximum of two arrays, propagates NaNs.
375376
:obj:`dpnp.fmax` : Element-wise maximum of two arrays, ignores NaNs.
376377
:obj:`dpnp.amax` : The maximum value of an array along a given axis, propagates NaNs.
@@ -400,11 +401,11 @@ def max(a, axis=None, out=None, keepdims=False, initial=None, where=True):
400401

401402
if initial is not None:
402403
raise NotImplementedError(
403-
"initial keyword arguemnt is only supported by its default value."
404+
"initial keyword argument is only supported by its default value."
404405
)
405406
elif where is not True:
406407
raise NotImplementedError(
407-
"where keyword arguemnt is only supported by its default values."
408+
"where keyword argument is only supported by its default values."
408409
)
409410
else:
410411
dpt_array = dpnp.get_usm_ndarray(a)
@@ -606,14 +607,15 @@ def min(a, axis=None, out=None, keepdims=False, initial=None, where=True):
606607
607608
Limitations
608609
-----------
609-
Input and output arrays are only supported as either :class:`dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`.
610+
Input and output arrays are only supported as either :class:`dpnp.ndarray`
611+
or :class:`dpctl.tensor.usm_ndarray`.
610612
Parameters `where`, and `initial` are supported only with their default values.
611613
Otherwise ``NotImplementedError`` exception will be raised.
612614
Input array data types are limited by supported DPNP :ref:`Data types`.
613615
614616
See Also
615617
--------
616-
:obj:`dpnp.max` : Return tha maximum of an array.
618+
:obj:`dpnp.max` : Return the maximum of an array.
617619
:obj:`dpnp.minimum` : Element-wise minimum of two arrays, propagates NaNs.
618620
:obj:`dpnp.fmin` : Element-wise minimum of two arrays, ignores NaNs.
619621
:obj:`dpnp.amin` : The minimum value of an array along a given axis, propagates NaNs.
@@ -643,11 +645,11 @@ def min(a, axis=None, out=None, keepdims=False, initial=None, where=True):
643645

644646
if initial is not None:
645647
raise NotImplementedError(
646-
"initial keyword arguemnt is only supported by its default value."
648+
"initial keyword argument is only supported by its default value."
647649
)
648650
elif where is not True:
649651
raise NotImplementedError(
650-
"where keyword arguemnt is only supported by its default values."
652+
"where keyword argument is only supported by its default values."
651653
)
652654
else:
653655
dpt_array = dpnp.get_usm_ndarray(a)

0 commit comments

Comments
 (0)