You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/API_specification/creation_functions.md
+14-12
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,15 @@ Returns evenly spaced values within the half-open interval `[start, stop)` as a
23
23
24
24
- the end of the interval. Default: `None`.
25
25
26
-
_Note: this function cannot guarantee that the interval does not include the `stop` value in those cases where `step` is not an integer and floating-point rounding errors affect the length of the output array._
26
+
.. note::
27
+
28
+
This function cannot guarantee that the interval does not include the `stop` value in those cases where `step` is not an integer and floating-point rounding errors affect the length of the output array.
27
29
28
30
-**step**: _Union\[ int, float ]_
29
31
30
32
- the distance between two adjacent elements (`out[i+1] - out[i]`). Default: `1`.
31
33
32
-
-**dtype**: _Optional\[_<dtype>_]_
34
+
-**dtype**: _Optional\[<dtype>]_
33
35
34
36
- output array data type. Default: `None`.
35
37
@@ -49,7 +51,7 @@ Returns an uninitialized array having a specified `shape`.
49
51
50
52
- output array shape.
51
53
52
-
-**dtype**: _Optional\[_<dtype>_]_
54
+
-**dtype**: _Optional\[<dtype>]_
53
55
54
56
- output array data type. Default: `None`.
55
57
@@ -69,7 +71,7 @@ Returns an uninitialized array with the same `shape` as an input array `x`.
69
71
70
72
- input array from which to derive the output array shape.
71
73
72
-
-**dtype**: _Optional\[_<dtype>_]_
74
+
-**dtype**: _Optional\[<dtype>]_
73
75
74
76
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
75
77
@@ -97,7 +99,7 @@ Returns a two-dimensional array with ones on the `k`th diagonal and zeros elsewh
97
99
98
100
- index of the diagonal. A positive value refers to an upper diagonal, a negative value to a lower diagonal, and `0` to the main diagonal. Default: `0`.
99
101
100
-
-**dtype**: _Optional\[_<dtype>_]_
102
+
-**dtype**: _Optional\[<dtype>]_
101
103
102
104
- output array data type. Default: `None`.
103
105
@@ -121,7 +123,7 @@ Returns a new array having a specified `shape` and filled with `fill_value`.
121
123
122
124
- fill value.
123
125
124
-
-**dtype**: _Optional\[_<dtype>_]_
126
+
-**dtype**: _Optional\[<dtype>]_
125
127
126
128
- output array data type. Default: `None`.
127
129
@@ -145,7 +147,7 @@ Returns a new array filled with `fill_value` and having the same `shape` as an i
145
147
146
148
- fill value.
147
149
148
-
-**dtype**: _Optional\[_<dtype>_]_
150
+
-**dtype**: _Optional\[<dtype>]_
149
151
150
152
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
151
153
@@ -175,7 +177,7 @@ Returns evenly spaced numbers over a specified interval.
175
177
176
178
- number of samples. Must be a non-negative integer value; otherwise, the function must raise an exception.
177
179
178
-
-**dtype**: _Optional\[_<dtype>_]_
180
+
-**dtype**: _Optional\[<dtype>]_
179
181
180
182
- output array data type. Default: `None`.
181
183
@@ -199,7 +201,7 @@ Returns a new array having a specified `shape` and filled with ones.
199
201
200
202
- output array shape.
201
203
202
-
-**dtype**: _Optional\[_<dtype>_]_
204
+
-**dtype**: _Optional\[<dtype>]_
203
205
204
206
- output array data type. Default: `None`.
205
207
@@ -219,7 +221,7 @@ Returns a new array filled with ones and having the same `shape` as an input arr
219
221
220
222
- input array from which to derive the output array shape.
221
223
222
-
-**dtype**: _Optional\[_<dtype>_]_
224
+
-**dtype**: _Optional\[<dtype>]_
223
225
224
226
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
225
227
@@ -239,7 +241,7 @@ Returns a new array having a specified `shape` and filled with zeros.
239
241
240
242
- output array shape.
241
243
242
-
-**dtype**: _Optional\[_<dtype>_]_
244
+
-**dtype**: _Optional\[<dtype>]_
243
245
244
246
- output array data type. Default: `None`.
245
247
@@ -259,7 +261,7 @@ Returns a new array filled with zeros and having the same `shape` as an input ar
259
261
260
262
- input array from which to derive the output array shape.
261
263
262
-
-**dtype**: _Optional\[_<dtype>_]_
264
+
-**dtype**: _Optional\[<dtype>]_
263
265
264
266
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
0 commit comments