|
912 | 912 |
|
913 | 913 | add_newdoc('numpy._core.multiarray','asarray', |
914 | 914 | """ |
915 | | - asarray(a, dtype=None, order=None, *, like=None) |
| 915 | + asarray(a, dtype=None, order=None, *,device=None,like=None) |
916 | 916 |
|
917 | 917 | Convert the input to an array. |
918 | 918 |
|
|
931 | 931 | 'A' (any) means 'F' if `a` is Fortran contiguous, 'C' otherwise |
932 | 932 | 'K' (keep) preserve input order |
933 | 933 | Defaults to 'K'. |
| 934 | + device : str, optional |
| 935 | + The device on which to place the created array. Default: None. |
| 936 | +
|
| 937 | + .. versionadded:: 2.0.0 |
934 | 938 | ${ARRAY_FUNCTION_LIKE} |
935 | 939 |
|
936 | 940 | .. versionadded:: 1.20.0 |
|
1184 | 1188 |
|
1185 | 1189 | add_newdoc('numpy._core.multiarray','empty', |
1186 | 1190 | """ |
1187 | | - empty(shape, dtype=float, order='C', *, like=None) |
| 1191 | + empty(shape, dtype=float, order='C', *,device=None,like=None) |
1188 | 1192 |
|
1189 | 1193 | Return a new array of given shape and type, without initializing entries. |
1190 | 1194 |
|
|
1199 | 1203 | Whether to store multi-dimensional data in row-major |
1200 | 1204 | (C-style) or column-major (Fortran-style) order in |
1201 | 1205 | memory. |
| 1206 | + device : str, optional |
| 1207 | + The device on which to place the created array. Default: None. |
| 1208 | +
|
| 1209 | + .. versionadded:: 2.0.0 |
1202 | 1210 | ${ARRAY_FUNCTION_LIKE} |
1203 | 1211 |
|
1204 | 1212 | .. versionadded:: 1.20.0 |
|
1676 | 1684 |
|
1677 | 1685 | add_newdoc('numpy._core.multiarray','arange', |
1678 | 1686 | """ |
1679 | | - arange([start,] stop[, step,], dtype=None, *, like=None) |
| 1687 | + arange([start,] stop[, step,], dtype=None, *,device=None,like=None) |
1680 | 1688 |
|
1681 | 1689 | Return evenly spaced values within a given interval. |
1682 | 1690 |
|
|
1717 | 1725 | dtype : dtype, optional |
1718 | 1726 | The type of the output array. If `dtype` is not given, infer the data |
1719 | 1727 | type from the other input arguments. |
| 1728 | + device : str, optional |
| 1729 | + The device on which to place the created array. Default: None. |
| 1730 | +
|
| 1731 | + .. versionadded:: 2.0.0 |
1720 | 1732 | ${ARRAY_FUNCTION_LIKE} |
1721 | 1733 |
|
1722 | 1734 | .. versionadded:: 1.20.0 |
|