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
an array containing the element-wise absolute value. If ``self`` has a real-valued data type, the returned array must have the same data type as ``self``. If ``self`` has a complex floating-point data type, the returned arrayed must have a real-valued floating-point data type whose precision matches the precision of ``self`` (e.g., if ``self`` is ``complex128``, then the returned array must have a ``float64`` data type).
138
138
139
-
.. note::
140
-
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.abs`.
141
-
142
139
Notes
143
140
-----
144
141
142
+
.. note::
143
+
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.abs`.
Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/creation_functions.py
+23
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,9 @@ def asarray(
98
98
out: array
99
99
an array containing the data from ``obj``.
100
100
101
+
Notes
102
+
-----
103
+
101
104
.. versionchanged:: 2022.12
102
105
Added complex data type support.
103
106
"""
@@ -183,6 +186,9 @@ def eye(
183
186
out: array
184
187
an array where all elements are equal to zero, except for the ``k``\th diagonal, whose values are equal to one.
185
188
189
+
Notes
190
+
-----
191
+
186
192
.. versionchanged:: 2022.12
187
193
Added complex data type support.
188
194
"""
@@ -244,6 +250,9 @@ def full(
244
250
out: array
245
251
an array where every element is equal to ``fill_value``.
246
252
253
+
Notes
254
+
-----
255
+
247
256
.. versionchanged:: 2022.12
248
257
Added complex data type support.
249
258
"""
@@ -283,6 +292,9 @@ def full_like(
283
292
out: array
284
293
an array having the same shape as ``x`` and where every element is equal to ``fill_value``.
285
294
295
+
Notes
296
+
-----
297
+
286
298
.. versionchanged:: 2022.12
287
299
Added complex data type support.
288
300
"""
@@ -346,6 +358,8 @@ def linspace(
346
358
out: array
347
359
a one-dimensional array containing evenly spaced values.
348
360
361
+
Notes
362
+
-----
349
363
350
364
.. note::
351
365
While this specification recommends that this function only return arrays having a floating-point data type, specification-compliant array libraries may choose to support output arrays having an integer data type (e.g., due to backward compatibility concerns). However, function behavior when generating integer output arrays is unspecified and, thus, is implementation-defined. Accordingly, using this function to generate integer output arrays is not portable.
0 commit comments