@@ -203,7 +203,7 @@ def arange(
203
203
step : {int, real}, optional
204
204
Spacing between values. The default `step` size is 1. If `step`
205
205
is specified as a position argument, `start` must also be given.
206
- dtype : {None, dtype}, optional
206
+ dtype : {None, str, dtype object }, optional
207
207
The desired dtype for the array. If not given, a default dtype will be
208
208
used that can represent the values (by considering Promotion Type Rule
209
209
and device capabilities when necessary).
@@ -306,7 +306,7 @@ def array(
306
306
Input data, in any form that can be converted to an array. This
307
307
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
308
308
tuples of lists, and ndarrays.
309
- dtype : {None, dtype}, optional
309
+ dtype : {None, str, dtype object }, optional
310
310
The desired dtype for the array. If not given, a default dtype will be
311
311
used that can represent the values (by considering Promotion Type Rule
312
312
and device capabilities when necessary).
@@ -462,7 +462,7 @@ def asanyarray(
462
462
Input data, in any form that can be converted to an array. This
463
463
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
464
464
tuples of lists, and ndarrays.
465
- dtype : {None, dtype}, optional
465
+ dtype : {None, str, dtype object }, optional
466
466
The desired dtype for the array. If not given, a default dtype will be
467
467
used that can represent the values (by considering Promotion Type Rule
468
468
and device capabilities when necessary).
@@ -565,7 +565,7 @@ def asarray(
565
565
Input data, in any form that can be converted to an array. This
566
566
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
567
567
tuples of lists, and ndarrays.
568
- dtype : {None, dtype}, optional
568
+ dtype : {None, str, dtype object }, optional
569
569
The desired dtype for the array. If not given, a default dtype will be
570
570
used that can represent the values (by considering Promotion Type Rule
571
571
and device capabilities when necessary).
@@ -670,7 +670,7 @@ def ascontiguousarray(
670
670
Input data, in any form that can be converted to an array. This
671
671
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
672
672
tuples of lists, and ndarrays.
673
- dtype : {None, dtype}, optional
673
+ dtype : {None, str, dtype object }, optional
674
674
The desired dtype for the array. If not given, a default dtype will be
675
675
used that can represent the values (by considering Promotion Type Rule
676
676
and device capabilities when necessary).
@@ -782,7 +782,7 @@ def asfortranarray(
782
782
Input data, in any form that can be converted to an array. This
783
783
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
784
784
tuples of lists, and ndarrays.
785
- dtype : {None, dtype}, optional
785
+ dtype : {None, str, dtype object }, optional
786
786
The desired dtype for the array. If not given, a default dtype will be
787
787
used that can represent the values (by considering Promotion Type Rule
788
788
and device capabilities when necessary).
@@ -1219,7 +1219,7 @@ def empty(
1219
1219
----------
1220
1220
shape : {int, sequence of ints}
1221
1221
Shape of the new array, e.g., (2, 3) or 2.
1222
- dtype : {None, dtype}, optional
1222
+ dtype : {None, str, dtype object }, optional
1223
1223
The desired dtype for the array, e.g., dpnp.int32.
1224
1224
Default is the default floating point data type for the device where
1225
1225
input array is allocated.
@@ -1320,7 +1320,7 @@ def empty_like(
1320
1320
a : {dpnp.ndarray, usm_ndarray}
1321
1321
The shape and dtype of `a` define these same attributes
1322
1322
of the returned array.
1323
- dtype : {None, dtype}, optional
1323
+ dtype : {None, str, dtype object }, optional
1324
1324
The desired dtype for the array, e.g., dpnp.int32.
1325
1325
Default is the default floating point data type for the device where
1326
1326
input array is allocated.
@@ -1433,7 +1433,7 @@ def eye(
1433
1433
Index of the diagonal: 0 (the default) refers to the main diagonal,
1434
1434
a positive value refers to an upper diagonal, and a negative value to
1435
1435
a lower diagonal.
1436
- dtype : {None, dtype}, optional
1436
+ dtype : {None, str, dtype object }, optional
1437
1437
The desired dtype for the array, e.g., dpnp.int32.
1438
1438
Default is the default floating point data type for the device where
1439
1439
input array is allocated.
@@ -1541,7 +1541,7 @@ def frombuffer(
1541
1541
----------
1542
1542
buffer : buffer_like
1543
1543
An object that exposes the buffer interface.
1544
- dtype : data-type , optional
1544
+ dtype : {None, str, dtype object} , optional
1545
1545
Data-type of the returned array.
1546
1546
Default is the default floating point data type for the device where
1547
1547
the returned array is allocated.
@@ -1646,7 +1646,7 @@ def fromfile(
1646
1646
----------
1647
1647
file : file or str or Path
1648
1648
Open file object or filename.
1649
- dtype : data-type , optional
1649
+ dtype : {None, str, dtype object} , optional
1650
1650
Data type of the returned array.
1651
1651
For binary files, it is used to determine the size and byte-order
1652
1652
of the items in the file.
@@ -1779,7 +1779,7 @@ def fromfunction(
1779
1779
shape : (N,) tuple of ints
1780
1780
Shape of the output array, which also determines the shape of
1781
1781
the coordinate arrays passed to `function`.
1782
- dtype : data-type , optional
1782
+ dtype : {None, str, dtype object} , optional
1783
1783
Data-type of the coordinate arrays passed to `function`.
1784
1784
Default is the default floating point data type for the device where
1785
1785
the returned array is allocated.
@@ -1887,7 +1887,7 @@ def fromiter(
1887
1887
----------
1888
1888
iter : iterable object
1889
1889
An iterable object providing data for the array.
1890
- dtype : data-type
1890
+ dtype : {None, str, dtype object}
1891
1891
The data-type of the returned array.
1892
1892
count : int, optional
1893
1893
The number of items to read from *iterable*. The default is -1,
@@ -1981,7 +1981,7 @@ def fromstring(
1981
1981
----------
1982
1982
string : str
1983
1983
A string containing the data.
1984
- dtype : data-type , optional
1984
+ dtype : {None, str, dtype object} , optional
1985
1985
The data type of the array.
1986
1986
For binary input data, the data must be in exactly this format.
1987
1987
Default is the default floating point data type for the device where
@@ -2159,7 +2159,7 @@ def full(
2159
2159
Fill value, in any form that can be converted to an array. This
2160
2160
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
2161
2161
tuples of lists, and ndarrays.
2162
- dtype : {None, dtype}, optional
2162
+ dtype : {None, str, dtype object }, optional
2163
2163
The desired dtype for the array, e.g., dpnp.int32.
2164
2164
Default is the default floating point data type for the device where
2165
2165
input array is allocated.
@@ -2263,7 +2263,7 @@ def full_like(
2263
2263
Fill value, in any form that can be converted to an array. This
2264
2264
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
2265
2265
tuples of lists, and ndarrays.
2266
- dtype : {None, dtype}, optional
2266
+ dtype : {None, str, dtype object }, optional
2267
2267
The desired dtype for the array, e.g., dpnp.int32.
2268
2268
Default is the default floating point data type for the device where
2269
2269
input array is allocated.
@@ -2382,7 +2382,7 @@ def geomspace(
2382
2382
num : int, optional
2383
2383
Number of samples to generate.
2384
2384
Default: ``50``.
2385
- dtype : {None, dtype}, optional
2385
+ dtype : {None, str, dtype object }, optional
2386
2386
The desired dtype for the array. If not given, a default dtype will be
2387
2387
used that can represent the values (by considering Promotion Type Rule
2388
2388
and device capabilities when necessary).
@@ -2492,7 +2492,7 @@ def identity(
2492
2492
----------
2493
2493
n : int
2494
2494
Number of rows (and columns) in `n` x `n` output.
2495
- dtype : {None, dtype}, optional
2495
+ dtype : {None, str, dtype object }, optional
2496
2496
The desired dtype for the array, e.g., dpnp.int32.
2497
2497
Default is the default floating point data type for the device where
2498
2498
input array is allocated.
@@ -2607,7 +2607,7 @@ def linspace(
2607
2607
of tuples, tuples of lists, and ndarrays. If `endpoint` is set to
2608
2608
``False`` the sequence consists of all but the last of ``num + 1``
2609
2609
evenly spaced samples, so that `stop` is excluded.
2610
- dtype : {None, dtype}, optional
2610
+ dtype : {None, str, dtype object }, optional
2611
2611
The desired dtype for the array. If not given, a default dtype will be
2612
2612
used that can represent the values (by considering Promotion Type Rule
2613
2613
and device capabilities when necessary).
@@ -2716,7 +2716,7 @@ def loadtxt(
2716
2716
is ``.gz`` or ``.bz2``, the file is first decompressed. Note that
2717
2717
generators must return bytes or strings. The strings in a list or
2718
2718
produced by a generator are treated as lines.
2719
- dtype : data-type , optional
2719
+ dtype : {None, str, dtype object} , optional
2720
2720
Data-type of the resulting array.
2721
2721
Default is the default floating point data type for the device where
2722
2722
the returned array is allocated.
@@ -2858,7 +2858,7 @@ def logspace(
2858
2858
The `step` size between the elements in ``ln(samples) / ln(base)``
2859
2859
(or log_base(samples)) is uniform.
2860
2860
Default: ``10.0``.
2861
- dtype : {None, dtype}, optional
2861
+ dtype : {None, str, dtype object }, optional
2862
2862
The desired dtype for the array. If not given, a default dtype will be
2863
2863
used that can represent the values (by considering Promotion Type Rule
2864
2864
and device capabilities when necessary).
@@ -3196,7 +3196,7 @@ def ones(
3196
3196
----------
3197
3197
shape : {int, sequence of ints}
3198
3198
Shape of the new array, e.g., (2, 3) or 2.
3199
- dtype : {None, dtype}, optional
3199
+ dtype : {None, str, dtype object }, optional
3200
3200
The desired dtype for the array, e.g., dpnp.int32.
3201
3201
Default is the default floating point data type for the device where
3202
3202
input array is allocated.
@@ -3303,7 +3303,7 @@ def ones_like(
3303
3303
a : {dpnp.ndarray, usm_ndarray}
3304
3304
The shape and dtype of `a` define these same attributes
3305
3305
of the returned array.
3306
- dtype : {None, dtype}, optional
3306
+ dtype : {None, str, dtype object }, optional
3307
3307
The desired dtype for the array, e.g., dpnp.int32.
3308
3308
Default is the default floating point data type for the device where
3309
3309
input array is allocated.
@@ -3408,7 +3408,7 @@ def trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None):
3408
3408
Axes to be used as the first and second axis of the 2-D sub-arrays from
3409
3409
which the diagonals should be taken. Defaults are the first two axes of
3410
3410
`a`.
3411
- dtype : dtype, optional
3411
+ dtype : {None, str, dtype object} , optional
3412
3412
Determines the data-type of the returned array and of the accumulator
3413
3413
where the elements are summed. If `dtype` has the value ``None`` and
3414
3414
`a` is of integer type of precision less than the default integer
@@ -3480,7 +3480,7 @@ def tri(
3480
3480
The sub-diagonal at and below which the array is filled. k = 0 is
3481
3481
the main diagonal, while k < 0 is below it, and k > 0 is above.
3482
3482
Default: ``0``.
3483
- dtype : {None, dtype}, optional
3483
+ dtype : {None, str, dtype object }, optional
3484
3484
The desired dtype for the array, e.g., dpnp.int32.
3485
3485
Default is the default floating point data type for the device where
3486
3486
input array is allocated.
@@ -3841,7 +3841,7 @@ def zeros(
3841
3841
----------
3842
3842
shape : {int, sequence of ints}
3843
3843
Shape of the new array, e.g., (2, 3) or 2.
3844
- dtype : {None, dtype}, optional
3844
+ dtype : {None, str, dtype object }, optional
3845
3845
The desired dtype for the array, e.g., `dpnp.int32`.
3846
3846
Default is the default floating point data type for the device where
3847
3847
input array is allocated.
@@ -3948,7 +3948,7 @@ def zeros_like(
3948
3948
a : {dpnp.ndarray, usm_ndarray}
3949
3949
The shape and dtype of `a` define these same attributes
3950
3950
of the returned array.
3951
- dtype : {None, dtype}, optional
3951
+ dtype : {None, str, dtype object }, optional
3952
3952
The desired dtype for the array, e.g., dpnp.int32.
3953
3953
Default is the default floating point data type for the device where
3954
3954
input array is allocated.
0 commit comments