Skip to content

Commit 071780c

Browse files
ev-brkgryte
andauthored
feat: add support for real-valued arrays in real and conj
PR-URL: #884 Closes: #824 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]> Reviewed-by: Ralf Gommers <[email protected]>
1 parent 4f26831 commit 071780c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/array_api_stubs/_draft/elementwise_functions.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def conj(x: array, /) -> array:
869869
Parameters
870870
----------
871871
x: array
872-
input array. Should have a complex floating-point data type.
872+
input array. Must have a numeric data type.
873873
874874
Returns
875875
-------
@@ -879,6 +879,8 @@ def conj(x: array, /) -> array:
879879
Notes
880880
-----
881881
882+
- Whether the returned array and the input array share the same underlying memory is unspecified and thus implementation-defined.
883+
882884
.. versionadded:: 2022.12
883885
"""
884886

@@ -2346,7 +2348,7 @@ def real(x: array, /) -> array:
23462348
Parameters
23472349
----------
23482350
x: array
2349-
input array. Should have a complex floating-point data type.
2351+
input array. Must have a numeric data type.
23502352
23512353
Returns
23522354
-------
@@ -2356,6 +2358,8 @@ def real(x: array, /) -> array:
23562358
Notes
23572359
-----
23582360
2361+
- Whether the returned array and the input array share the same underlying memory is unspecified and thus implementation-defined.
2362+
23592363
.. versionadded:: 2022.12
23602364
"""
23612365

0 commit comments

Comments
 (0)