Skip to content

Commit cb7e686

Browse files
committed
fix doc-string
1 parent 233e4fc commit cb7e686

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 value."
408+
"where keyword argument is only supported by its default value."
408409
)
409410
else:
410411
dpt_array = dpnp.get_usm_ndarray(a)
@@ -607,14 +608,15 @@ def min(a, axis=None, out=None, keepdims=False, initial=None, where=True):
607608
608609
Limitations
609610
-----------
610-
Input and output arrays are only supported as either :class:`dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`.
611+
Input and output arrays are only supported as either :class:`dpnp.ndarray`
612+
or :class:`dpctl.tensor.usm_ndarray`.
611613
Parameters `where`, and `initial` are supported only with their default values.
612614
Otherwise ``NotImplementedError`` exception will be raised.
613615
Input array data types are limited by supported DPNP :ref:`Data types`.
614616
615617
See Also
616618
--------
617-
:obj:`dpnp.max` : Return tha maximum of an array.
619+
:obj:`dpnp.max` : Return the maximum of an array.
618620
:obj:`dpnp.minimum` : Element-wise minimum of two arrays, propagates NaNs.
619621
:obj:`dpnp.fmin` : Element-wise minimum of two arrays, ignores NaNs.
620622
:obj:`dpnp.amin` : The minimum value of an array along a given axis, propagates NaNs.
@@ -644,11 +646,11 @@ def min(a, axis=None, out=None, keepdims=False, initial=None, where=True):
644646

645647
if initial is not None:
646648
raise NotImplementedError(
647-
"initial keyword arguemnt is only supported by its default value."
649+
"initial keyword argument is only supported by its default value."
648650
)
649651
elif where is not True:
650652
raise NotImplementedError(
651-
"where keyword arguemnt is only supported by its default values."
653+
"where keyword argument is only supported by its default values."
652654
)
653655
else:
654656
dpt_array = dpnp.get_usm_ndarray(a)

0 commit comments

Comments
 (0)