Skip to content

Commit 8889a20

Browse files
committed
fix docstring
1 parent 39fe5d7 commit 8889a20

7 files changed

+47
-47
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def empty_like(
787787
788788
Limitations
789789
-----------
790-
Parameter `x1` is supported as :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray`
790+
Parameter `x1` is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`
791791
Parameter `order` is supported with values ``"C"`` or ``"F"``.
792792
Parameter `subok` is supported only with default value ``False``.
793793
Otherwise the function will be executed sequentially on CPU.
@@ -1049,7 +1049,7 @@ def full_like(
10491049
10501050
Limitations
10511051
-----------
1052-
Parameter `x1` is supported as :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray`
1052+
Parameter `x1` is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`
10531053
Parameter `order` is supported only with values ``"C"`` and ``"F"``.
10541054
Parameter `subok` is supported only with default value ``False``.
10551055
Otherwise the function will be executed sequentially on CPU.
@@ -1395,7 +1395,7 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
13951395
13961396
Limitations
13971397
-----------
1398-
Each array instance from `xi` is supported as either :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray`.
1398+
Each array instance from `xi` is supported as either :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`.
13991399
Parameter `copy` is supported only with default value ``True``.
14001400
Parameter `sparse` is supported only with default value ``False``.
14011401
Otherwise the function will be executed sequentially on CPU.
@@ -1583,7 +1583,7 @@ def ones_like(
15831583
15841584
Limitations
15851585
-----------
1586-
Parameter `x1` is supported as :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray`
1586+
Parameter `x1` is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`
15871587
Parameter `order` is supported with values ``"C"`` or ``"F"``.
15881588
Parameter `subok` is supported only with default value ``False``.
15891589
Otherwise the function will be executed sequentially on CPU.
@@ -1753,7 +1753,7 @@ def tril(x1, /, *, k=0):
17531753
17541754
Limitations
17551755
-----------
1756-
Parameter `x1` is supported as :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray` with two or more dimensions.
1756+
Parameter `x1` is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray` with two or more dimensions.
17571757
Parameter `k` is supported only of integer data type.
17581758
Otherwise the function will be executed sequentially on CPU.
17591759
@@ -1797,7 +1797,7 @@ def triu(x1, /, *, k=0):
17971797
17981798
Limitations
17991799
-----------
1800-
Parameter `x1` is supported as :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray` with two or more dimensions.
1800+
Parameter `x1` is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray` with two or more dimensions.
18011801
Parameter `k` is supported only of integer data type.
18021802
Otherwise the function will be executed sequentially on CPU.
18031803
@@ -1985,7 +1985,7 @@ def zeros_like(
19851985
19861986
Limitations
19871987
-----------
1988-
Parameter `x1` is supported as :class:`dpnp.dpnp_array` or :class:`dpctl.tensor.usm_ndarray`
1988+
Parameter `x1` is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`
19891989
Parameter `order` is supported with values ``"C"`` or ``"F"``.
19901990
Parameter `subok` is supported only with default value ``False``.
19911991
Otherwise the function will be executed sequentially on CPU.

dpnp/dpnp_iface_manipulation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def ravel(a, order="C"):
11741174
11751175
Parameters
11761176
----------
1177-
x : {dpnp.array, usm_ndarray}
1177+
x : {dpnp.ndarray, usm_ndarray}
11781178
Input array. The elements in `a` are read in the order specified by order,
11791179
and packed as a 1-D array.
11801180
order : {'C', 'F'}, optional
@@ -1187,7 +1187,7 @@ def ravel(a, order="C"):
11871187
11881188
Returns
11891189
-------
1190-
out : dpnp.array
1190+
out : dpnp.ndarray
11911191
A contiguous 1-D array of the same subtype as `a`, with shape (a.size,).
11921192
11931193
See Also
@@ -1220,7 +1220,7 @@ def repeat(a, repeats, axis=None):
12201220
12211221
Parameters
12221222
----------
1223-
x : {dpnp.array, usm_ndarray}
1223+
x : {dpnp.ndarray, usm_ndarray}
12241224
Input array.
12251225
repeat : int or array of int
12261226
The number of repetitions for each element. `repeats` is broadcasted to fit
@@ -1231,7 +1231,7 @@ def repeat(a, repeats, axis=None):
12311231
12321232
Returns
12331233
-------
1234-
out : dpnp.array
1234+
out : dpnp.ndarray
12351235
Output array which has the same shape as `a`, except along the given axis.
12361236
12371237
See Also

dpnp/dpnp_iface_mathematical.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def angle(z, deg=False):
301301
302302
Parameters
303303
----------
304-
x : {dpnp.array, usm_ndarray}
304+
x : {dpnp.ndarray, usm_ndarray}
305305
Input array, expected to have a complex-valued floating-point data type.
306306
deg : bool, optional
307307
Return angle in degrees if True, radians if False (default).
@@ -448,12 +448,12 @@ def clip(a, a_min, a_max, *, out=None, order="K", **kwargs):
448448
449449
Parameters
450450
----------
451-
a : {dpnp.array, usm_ndarray}
451+
a : {dpnp.ndarray, usm_ndarray}
452452
Array containing elements to clip.
453-
a_min, a_max : {dpnp.array, usm_ndarray, None}
453+
a_min, a_max : {dpnp.ndarray, usm_ndarray, None}
454454
Minimum and maximum value. If ``None``, clipping is not performed on the corresponding edge.
455455
Only one of `a_min` and `a_max` may be ``None``. Both are broadcast against `a`.
456-
out : {dpnp.array, usm_ndarray}, optional
456+
out : {dpnp.ndarray, usm_ndarray}, optional
457457
The results will be placed in this array. It may be the input array for in-place clipping.
458458
`out` must be of the right shape to hold the output. Its type is preserved.
459459
order : {"C", "F", "A", "K", None}, optional
@@ -462,7 +462,7 @@ def clip(a, a_min, a_max, *, out=None, order="K", **kwargs):
462462
463463
Returns
464464
-------
465-
out : dpnp.array
465+
out : dpnp.ndarray
466466
An array with the elements of `a`, but where values < `a_min` are replaced with `a_min`,
467467
and those > `a_max` with `a_max`.
468468

dpnp/dpnp_iface_nanfunctions.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ def _replace_nan(a, val):
7070
7171
Parameters
7272
----------
73-
a : {dpnp.array, usm_ndarray}
73+
a : {dpnp.ndarray, usm_ndarray}
7474
Input array.
7575
val : float
7676
NaN values are set to `val` before doing the operation.
7777
7878
Returns
7979
-------
80-
out : {dpnp.array}
80+
out : {dpnp.ndarray}
8181
If `a` is of inexact type, return a copy of `a` with the NaNs
8282
replaced by the fill value, otherwise return `a`.
8383
mask: {bool, None}
@@ -108,13 +108,13 @@ def nanargmax(a, axis=None, out=None, *, keepdims=False):
108108
109109
Parameters
110110
----------
111-
a : {dpnp.array, usm_ndarray}
111+
a : {dpnp.ndarray, usm_ndarray}
112112
Input array.
113113
axis : int, optional
114114
Axis along which to search. If ``None``, the function must return
115115
the index of the maximum value of the flattened array.
116116
Default: ``None``.
117-
out : {dpnp.array, usm_ndarray}, optional
117+
out : {dpnp.ndarray, usm_ndarray}, optional
118118
If provided, the result will be inserted into this array. It should
119119
be of the appropriate shape and dtype.
120120
keepdims : bool
@@ -176,13 +176,13 @@ def nanargmin(a, axis=None, out=None, *, keepdims=False):
176176
177177
Parameters
178178
----------
179-
a : {dpnp.array, usm_ndarray}
179+
a : {dpnp.ndarray, usm_ndarray}
180180
Input array.
181181
axis : int, optional
182182
Axis along which to search. If ``None``, the function must return
183183
the index of the minimum value of the flattened array.
184184
Default: ``None``.
185-
out : {dpnp.array, usm_ndarray}, optional
185+
out : {dpnp.ndarray, usm_ndarray}, optional
186186
If provided, the result will be inserted into this array. It should
187187
be of the appropriate shape and dtype.
188188
keepdims : bool
@@ -318,14 +318,14 @@ def nanmax(a, axis=None, out=None, keepdims=False, initial=None, where=True):
318318
319319
Parameters
320320
----------
321-
a : {dpnp.array, usm_ndarray}
321+
a : {dpnp.ndarray, usm_ndarray}
322322
Input array.
323323
axis : int or tuple of ints, optional
324324
Axis or axes along which maximum values must be computed. By default,
325325
the maximum value must be computed over the entire array. If a tuple of integers,
326326
maximum values must be computed over multiple axes.
327327
Default: ``None``.
328-
out : {dpnp.array, usm_ndarray}, optional
328+
out : {dpnp.ndarray, usm_ndarray}, optional
329329
If provided, the result will be inserted into this array. It should
330330
be of the appropriate shape and dtype.
331331
keepdims : bool
@@ -413,14 +413,14 @@ def nanmin(a, axis=None, out=None, keepdims=False, initial=None, where=True):
413413
414414
Parameters
415415
----------
416-
a : {dpnp.array, usm_ndarray}
416+
a : {dpnp.ndarray, usm_ndarray}
417417
Input array.
418418
axis : int or tuple of ints, optional
419419
Axis or axes along which minimum values must be computed. By default,
420420
the minimum value must be computed over the entire array. If a tuple of integers,
421421
minimum values must be computed over multiple axes.
422422
Default: ``None``.
423-
out : {dpnp.array, usm_ndarray}, optional
423+
out : {dpnp.ndarray, usm_ndarray}, optional
424424
If provided, the result will be inserted into this array. It should
425425
be of the appropriate shape and dtype.
426426
keepdims : bool, optional
@@ -603,7 +603,7 @@ def nanvar(
603603
604604
Parameters
605605
----------
606-
a : {dpnp.array, usm_ndarray}:
606+
a : {dpnp.ndarray, usm_ndarray}:
607607
Input array.
608608
axis : int or tuple of ints, optional
609609
axis or axes along which the variances must be computed. If a tuple
@@ -614,7 +614,7 @@ def nanvar(
614614
Type to use in computing the standard deviation. For arrays of
615615
integer type the default real-valued floating-point data type is used,
616616
for arrays of float types it is the same as the array type.
617-
out : {dpnp.array, usm_ndarray}, optional
617+
out : {dpnp.ndarray, usm_ndarray}, optional
618618
Alternative output array in which to place the result. It must have
619619
the same shape as the expected output but the type (of the calculated
620620
values) will be cast if necessary.

dpnp/dpnp_iface_searching.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def argmax(a, axis=None, out=None, *, keepdims=False):
5757
5858
Parameters
5959
----------
60-
a : {dpnp.array, usm_ndarray}
60+
a : {dpnp.ndarray, usm_ndarray}
6161
Input array.
6262
axis : int, optional
6363
Axis along which to search. If ``None``, the function must return
6464
the index of the maximum value of the flattened array.
6565
Default: ``None``.
66-
out : {dpnp.array, usm_ndarray}, optional
66+
out : {dpnp.ndarray, usm_ndarray}, optional
6767
If provided, the result will be inserted into this array. It should
6868
be of the appropriate shape and dtype.
6969
keepdims : bool
@@ -141,13 +141,13 @@ def argmin(a, axis=None, out=None, *, keepdims=False):
141141
142142
Parameters
143143
----------
144-
a : {dpnp.array, usm_ndarray}
144+
a : {dpnp.ndarray, usm_ndarray}
145145
Input array.
146146
axis : int, optional
147147
Axis along which to search. If ``None``, the function must return
148148
the index of the minimum value of the flattened array.
149149
Default: ``None``.
150-
out : {dpnp.array, usm_ndarray}, optional
150+
out : {dpnp.ndarray, usm_ndarray}, optional
151151
If provided, the result will be inserted into this array. It should
152152
be of the appropriate shape and dtype.
153153
keepdims : bool, optional

dpnp/dpnp_iface_statistics.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _count_reduce_items(arr, axis, where=True):
7272
7373
Parameters
7474
----------
75-
arr : {dpnp.array, usm_ndarray}
75+
arr : {dpnp.ndarray, usm_ndarray}
7676
Input array.
7777
axis : int or tuple of ints, optional
7878
axis or axes along which the number of items used in a reduction operation must be counted.
@@ -376,14 +376,14 @@ def max(a, axis=None, out=None, keepdims=False, initial=None, where=True):
376376
377377
Parameters
378378
----------
379-
a : {dpnp.array, usm_ndarray}
379+
a : {dpnp.ndarray, usm_ndarray}
380380
Input array.
381381
axis : int or tuple of ints, optional
382382
Axis or axes along which maximum values must be computed. By default,
383383
the maximum value must be computed over the entire array. If a tuple of integers,
384384
maximum values must be computed over multiple axes.
385385
Default: ``None``.
386-
out : {dpnp.array, usm_ndarray}, optional
386+
out : {dpnp.ndarray, usm_ndarray}, optional
387387
If provided, the result will be inserted into this array. It should
388388
be of the appropriate shape and dtype.
389389
keepdims : bool
@@ -573,14 +573,14 @@ def min(a, axis=None, out=None, keepdims=False, initial=None, where=True):
573573
574574
Parameters
575575
----------
576-
a : {dpnp.array, usm_ndarray}
576+
a : {dpnp.ndarray, usm_ndarray}
577577
Input array.
578578
axis : int or tuple of ints, optional
579579
Axis or axes along which minimum values must be computed. By default,
580580
the minimum value must be computed over the entire array. If a tuple of integers,
581581
minimum values must be computed over multiple axes.
582582
Default: ``None``.
583-
out : {dpnp.array, usm_ndarray}, optional
583+
out : {dpnp.ndarray, usm_ndarray}, optional
584584
If provided, the result will be inserted into this array. It should
585585
be of the appropriate shape and dtype.
586586
keepdims : bool, optional
@@ -672,7 +672,7 @@ def ptp(
672672
673673
Limitations
674674
-----------
675-
Input array is supported as :class:`dpnp.dpnp.array` or :class:`dpctl.tensor.usm_ndarray`.
675+
Input array is supported as :class:`dpnp.dpnp.ndarray` or :class:`dpctl.tensor.usm_ndarray`.
676676
677677
Examples
678678
--------
@@ -706,7 +706,7 @@ def std(
706706
707707
Parameters
708708
----------
709-
a : {dpnp.array, usm_ndarray}:
709+
a : {dpnp.ndarray, usm_ndarray}:
710710
nput array.
711711
axis : int or tuple of ints, optional
712712
Axis or axes along which the variances must be computed. If a tuple
@@ -717,7 +717,7 @@ def std(
717717
Type to use in computing the standard deviation. For arrays of
718718
integer type the default real-valued floating-point data type is used,
719719
for arrays of float types it is the same as the array type.
720-
out : {dpnp.array, usm_ndarray}, optional
720+
out : {dpnp.ndarray, usm_ndarray}, optional
721721
Alternative output array in which to place the result. It must have
722722
the same shape as the expected output but the type (of the calculated
723723
values) will be cast if necessary.
@@ -828,7 +828,7 @@ def var(
828828
829829
Parameters
830830
----------
831-
a : {dpnp.array, usm_ndarray}:
831+
a : {dpnp.ndarray, usm_ndarray}:
832832
Input array.
833833
axis : int or tuple of ints, optional
834834
axis or axes along which the variances must be computed. If a tuple
@@ -839,7 +839,7 @@ def var(
839839
Type to use in computing the variance. For arrays of integer type
840840
the default real-valued floating-point data type is used,
841841
for arrays of float types it is the same as the array type.
842-
out : {dpnp.array, usm_ndarray}, optional
842+
out : {dpnp.ndarray, usm_ndarray}, optional
843843
Alternative output array in which to place the result. It must have
844844
the same shape as the expected output but the type (of the calculated
845845
values) will be cast if necessary.

dpnp/dpnp_iface_trigonometric.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,14 +1345,14 @@ def logsumexp(x, axis=None, out=None, dtype=None, keepdims=False):
13451345
13461346
Parameters
13471347
----------
1348-
x : {dpnp_array, usm_ndarray}
1348+
x : {dpnp.ndarray, usm_ndarray}
13491349
Input array, expected to have a real-valued data type.
13501350
axis : int or tuple of ints, optional
13511351
Axis or axes along which values must be computed. If a tuple
13521352
of unique integers, values are computed over multiple axes.
13531353
If ``None``, the result is computed over the entire array.
13541354
Default: ``None``.
1355-
out : {dpnp_array, usm_ndarray}, optional
1355+
out : {dpnp.ndarray, usm_ndarray}, optional
13561356
If provided, the result will be inserted into this array. It should
13571357
be of the appropriate shape and dtype.
13581358
dtype : data type, optional
@@ -1432,7 +1432,7 @@ def reciprocal(
14321432
14331433
Parameters
14341434
----------
1435-
x : {dpnp.array, usm_ndarray}
1435+
x : {dpnp.ndarray, usm_ndarray}
14361436
Input array.
14371437
out : {None, dpnp.ndarray}, optional
14381438
Output array to populate.
@@ -1480,14 +1480,14 @@ def reduce_hypot(x, axis=None, out=None, dtype=None, keepdims=False):
14801480
14811481
Parameters
14821482
----------
1483-
x : {dpnp_array, usm_ndarray}
1483+
x : {dpnp.ndarray, usm_ndarray}
14841484
Input array, expected to have a real-valued data type.
14851485
axis : int or tuple of ints, optional
14861486
Axis or axes along which values must be computed. If a tuple
14871487
of unique integers, values are computed over multiple axes.
14881488
If ``None``, the result is computed over the entire array.
14891489
Default: ``None``.
1490-
out : {dpnp_array, usm_ndarray}, optional
1490+
out : {dpnp.ndarray, usm_ndarray}, optional
14911491
If provided, the result will be inserted into this array. It should
14921492
be of the appropriate shape and dtype.
14931493
dtype : data type, optional

0 commit comments

Comments
 (0)