@@ -128,7 +128,7 @@ def arange(
128
128
step : {int, real}, optional
129
129
Spacing between values. The default `step` size is 1. If `step`
130
130
is specified as a position argument, `start` must also be given.
131
- dtype : dtype, optional
131
+ dtype : {None, dtype} , optional
132
132
The desired dtype for the array. If not given, a default dtype will be
133
133
used that can represent the values (by considering Promotion Type Rule
134
134
and device capabilities when necessary).
@@ -227,11 +227,11 @@ def array(
227
227
Input data, in any form that can be converted to an array. This
228
228
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
229
229
tuples of lists, and ndarrays.
230
- dtype : dtype, optional
230
+ dtype : {None, dtype} , optional
231
231
The desired dtype for the array. If not given, a default dtype will be
232
232
used that can represent the values (by considering Promotion Type Rule
233
233
and device capabilities when necessary).
234
- copy : bool, optional
234
+ copy : { bool} , optional
235
235
If ``True`` (default), then the object is copied.
236
236
order : {"C", "F", "A", "K"}, optional
237
237
Memory layout of the newly output array. Default: "K".
@@ -353,7 +353,7 @@ def asanyarray(
353
353
Input data, in any form that can be converted to an array. This
354
354
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
355
355
tuples of lists, and ndarrays.
356
- dtype : dtype, optional
356
+ dtype : {None, dtype} , optional
357
357
The desired dtype for the array. If not given, a default dtype will be
358
358
used that can represent the values (by considering Promotion Type Rule
359
359
and device capabilities when necessary).
@@ -449,7 +449,7 @@ def asarray(
449
449
Input data, in any form that can be converted to an array. This
450
450
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
451
451
tuples of lists, and ndarrays.
452
- dtype : dtype, optional
452
+ dtype : {None, dtype} , optional
453
453
The desired dtype for the array. If not given, a default dtype will be
454
454
used that can represent the values (by considering Promotion Type Rule
455
455
and device capabilities when necessary).
@@ -540,7 +540,7 @@ def ascontiguousarray(
540
540
Input data, in any form that can be converted to an array. This
541
541
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
542
542
tuples of lists, and ndarrays.
543
- dtype : dtype, optional
543
+ dtype : {None, dtype} , optional
544
544
The desired dtype for the array. If not given, a default dtype will be
545
545
used that can represent the values (by considering Promotion Type Rule
546
546
and device capabilities when necessary).
@@ -650,7 +650,7 @@ def asfortranarray(
650
650
Input data, in any form that can be converted to an array. This
651
651
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
652
652
tuples of lists, and ndarrays.
653
- dtype : dtype, optional
653
+ dtype : {None, dtype} , optional
654
654
The desired dtype for the array. If not given, a default dtype will be
655
655
used that can represent the values (by considering Promotion Type Rule
656
656
and device capabilities when necessary).
@@ -1081,7 +1081,7 @@ def empty(
1081
1081
----------
1082
1082
shape : {int, sequence of ints}
1083
1083
Shape of the new array, e.g., (2, 3) or 2.
1084
- dtype : dtype, optional
1084
+ dtype : {None, dtype} , optional
1085
1085
The desired dtype for the array, e.g., dpnp.int32.
1086
1086
Default is the default floating point data type for the device where
1087
1087
input array is allocated.
@@ -1179,7 +1179,7 @@ def empty_like(
1179
1179
a : {dpnp_array, usm_ndarray}
1180
1180
The shape and dtype of `a` define these same attributes
1181
1181
of the returned array.
1182
- dtype : dtype, optional
1182
+ dtype : {None, dtype} , optional
1183
1183
The desired dtype for the array, e.g., dpnp.int32.
1184
1184
Default is the default floating point data type for the device where
1185
1185
input array is allocated.
@@ -1292,7 +1292,7 @@ def eye(
1292
1292
Index of the diagonal: 0 (the default) refers to the main diagonal,
1293
1293
a positive value refers to an upper diagonal, and a negative value to
1294
1294
a lower diagonal.
1295
- dtype : dtype, optional
1295
+ dtype : {None, dtype} , optional
1296
1296
The desired dtype for the array, e.g., dpnp.int32.
1297
1297
Default is the default floating point data type for the device where
1298
1298
input array is allocated.
@@ -1902,7 +1902,7 @@ def full(
1902
1902
Fill value, in any form that can be converted to an array. This
1903
1903
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
1904
1904
tuples of lists, and ndarrays.
1905
- dtype : dtype, optional
1905
+ dtype : {None, dtype} , optional
1906
1906
The desired dtype for the array, e.g., dpnp.int32.
1907
1907
Default is the default floating point data type for the device where
1908
1908
input array is allocated.
@@ -2003,7 +2003,7 @@ def full_like(
2003
2003
Fill value, in any form that can be converted to an array. This
2004
2004
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
2005
2005
tuples of lists, and ndarrays.
2006
- dtype : dtype, optional
2006
+ dtype : {None, dtype} , optional
2007
2007
The desired dtype for the array, e.g., dpnp.int32.
2008
2008
Default is the default floating point data type for the device where
2009
2009
input array is allocated.
@@ -2121,7 +2121,7 @@ def geomspace(
2121
2121
all but the last (a sequence of length `num`) are returned.
2122
2122
num : int, optional
2123
2123
Number of samples to generate. Default is 50.
2124
- dtype : dtype, optional
2124
+ dtype : {None, dtype} , optional
2125
2125
The desired dtype for the array. If not given, a default dtype will be
2126
2126
used that can represent the values (by considering Promotion Type Rule
2127
2127
and device capabilities when necessary).
@@ -2137,10 +2137,10 @@ def geomspace(
2137
2137
Default is ``None``.
2138
2138
sycl_queue : {None, SyclQueue}, optional
2139
2139
A SYCL queue to use for output array allocation and copying.
2140
- endpoint : bool, optional
2140
+ endpoint : { bool} , optional
2141
2141
If ``True``, `stop` is the last sample. Otherwise, it is not included.
2142
2142
Default is ``True``.
2143
- axis : int, optional
2143
+ axis : { int} , optional
2144
2144
The axis in the result to store the samples. Relevant only if start or
2145
2145
stop are array-like. By default (0), the samples will be along a new
2146
2146
axis inserted at the beginning. Use -1 to get an axis at the end.
@@ -2231,7 +2231,7 @@ def identity(
2231
2231
----------
2232
2232
n : int
2233
2233
Number of rows (and columns) in `n` x `n` output.
2234
- dtype : dtype, optional
2234
+ dtype : {None, dtype} , optional
2235
2235
The desired dtype for the array, e.g., dpnp.int32.
2236
2236
Default is the default floating point data type for the device where
2237
2237
input array is allocated.
@@ -2342,7 +2342,7 @@ def linspace(
2342
2342
of tuples, tuples of lists, and ndarrays. If `endpoint` is set to
2343
2343
``False`` the sequence consists of all but the last of ``num + 1``
2344
2344
evenly spaced samples, so that `stop` is excluded.
2345
- dtype : dtype, optional
2345
+ dtype : {None, dtype} , optional
2346
2346
The desired dtype for the array. If not given, a default dtype will be
2347
2347
used that can represent the values (by considering Promotion Type Rule
2348
2348
and device capabilities when necessary).
@@ -2358,13 +2358,13 @@ def linspace(
2358
2358
Default is ``None``.
2359
2359
sycl_queue : {None, SyclQueue}, optional
2360
2360
A SYCL queue to use for output array allocation and copying.
2361
- endpoint : bool, optional
2361
+ endpoint : { bool} , optional
2362
2362
If ``True``, `stop` is the last sample. Otherwise, it is not included.
2363
2363
Default is ``True``.
2364
- retstep : bool, optional
2364
+ retstep : { bool} , optional
2365
2365
If ``True``, return (samples, step), where step is the spacing between
2366
2366
samples.
2367
- axis : int, optional
2367
+ axis : { int} , optional
2368
2368
The axis in the result to store the samples. Relevant only if start or
2369
2369
stop are array-like. By default (0), the samples will be along a new
2370
2370
axis inserted at the beginning. Use -1 to get an axis at the end.
@@ -2576,22 +2576,22 @@ def logspace(
2576
2576
Default is ``None``.
2577
2577
sycl_queue : {None, SyclQueue}, optional
2578
2578
A SYCL queue to use for output array allocation and copying.
2579
- endpoint : bool, optional
2579
+ endpoint : { bool} , optional
2580
2580
If ``True``, stop is the last sample. Otherwise, it is not included.
2581
2581
Default is ``True``.
2582
- base : array_like, optional
2582
+ base : { array_like} , optional
2583
2583
Input data, in any form that can be converted to an array. This
2584
2584
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
2585
2585
tuples of lists, and ndarrays. The base of the log space, in any form
2586
2586
that can be converted to an array.This includes scalars, lists, lists
2587
2587
of tuples, tuples, tuples of tuples, tuples of lists, and ndarrays.
2588
2588
The `step` size between the elements in ``ln(samples) / ln(base)``
2589
2589
(or log_base(samples)) is uniform. Default is 10.0.
2590
- dtype : dtype, optional
2590
+ dtype : {None, dtype} , optional
2591
2591
The desired dtype for the array. If not given, a default dtype will be
2592
2592
used that can represent the values (by considering Promotion Type Rule
2593
2593
and device capabilities when necessary).
2594
- axis : int, optional
2594
+ axis : { int} , optional
2595
2595
The axis in the result to store the samples. Relevant only if start,
2596
2596
stop, or base are array-like. By default (0), the samples will be along
2597
2597
a new axis inserted at the beginning. Use -1 to get an axis at the end.
@@ -2674,11 +2674,11 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
2674
2674
1-D arrays representing the coordinates of a grid.
2675
2675
indexing : {'xy', 'ij'}, optional
2676
2676
Cartesian (``'xy'``, default) or matrix (``'ij'``) indexing of output.
2677
- sparse : bool, optional
2677
+ sparse : { bool} , optional
2678
2678
If True the shape of the returned coordinate array for dimension `i`
2679
2679
is reduced from ``(N1, ..., Ni, ... Nn)`` to
2680
2680
``(1, ..., 1, Ni, 1, ..., 1)``. Default is False.
2681
- copy : bool, optional
2681
+ copy : { bool} , optional
2682
2682
If False, a view into the original arrays are returned in order to
2683
2683
conserve memory. Default is True.
2684
2684
@@ -2908,7 +2908,7 @@ def ones(
2908
2908
----------
2909
2909
shape : {int, sequence of ints}
2910
2910
Shape of the new array, e.g., (2, 3) or 2.
2911
- dtype : dtype, optional
2911
+ dtype : {None, dtype} , optional
2912
2912
The desired dtype for the array, e.g., dpnp.int32.
2913
2913
Default is the default floating point data type for the device where
2914
2914
input array is allocated.
@@ -3012,7 +3012,7 @@ def ones_like(
3012
3012
a : {dpnp_array, usm_ndarray}
3013
3013
The shape and dtype of `a` define these same attributes
3014
3014
of the returned array.
3015
- dtype : dtype, optional
3015
+ dtype : {None, dtype} , optional
3016
3016
The desired dtype for the array, e.g., dpnp.int32.
3017
3017
Default is the default floating point data type for the device where
3018
3018
input array is allocated.
@@ -3158,7 +3158,7 @@ def tri(
3158
3158
The sub-diagonal at and below which the array is filled. k = 0 is
3159
3159
the main diagonal, while k < 0 is below it, and k > 0 is above.
3160
3160
The default is 0.
3161
- dtype : dtype, optional
3161
+ dtype : {None, dtype} , optional
3162
3162
The desired dtype for the array, e.g., dpnp.int32.
3163
3163
Default is the default floating point data type for the device where
3164
3164
input array is allocated.
@@ -3385,7 +3385,7 @@ def vander(
3385
3385
N : int, optional
3386
3386
Number of columns in the output. If `N` is not specified, a square
3387
3387
array is returned ``(N = len(x))``.
3388
- increasing : bool, optional
3388
+ increasing : { bool} , optional
3389
3389
Order of the powers of the columns. If ``True,`` the powers increase
3390
3390
from left to right, if ``False`` (the default) they are reversed.
3391
3391
device : {None, string, SyclDevice, SyclQueue}, optional
@@ -3499,7 +3499,7 @@ def zeros(
3499
3499
----------
3500
3500
shape : {int, sequence of ints}
3501
3501
Shape of the new array, e.g., (2, 3) or 2.
3502
- dtype : dtype, optional
3502
+ dtype : {None, dtype} , optional
3503
3503
The desired dtype for the array, e.g., dpnp.int32.
3504
3504
Default is the default floating point data type for the device where
3505
3505
input array is allocated.
@@ -3603,7 +3603,7 @@ def zeros_like(
3603
3603
a : {dpnp_array, usm_ndarray}
3604
3604
The shape and dtype of `a` define these same attributes
3605
3605
of the returned array.
3606
- dtype : dtype, optional
3606
+ dtype : {None, dtype} , optional
3607
3607
The desired dtype for the array, e.g., dpnp.int32.
3608
3608
Default is the default floating point data type for the device where
3609
3609
input array is allocated.
0 commit comments