Skip to content

Commit

Permalink
feat: add support for real-valued arrays in real and conj
Browse files Browse the repository at this point in the history
PR-URL: data-apis#884
Closes: data-apis#824
Co-authored-by: Athan Reines <[email protected]>
Reviewed-by: Athan Reines <[email protected]> 
Reviewed-by: Ralf Gommers <[email protected]>
  • Loading branch information
ev-br and kgryte authored Feb 6, 2025
1 parent 4f26831 commit 071780c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/array_api_stubs/_draft/elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def conj(x: array, /) -> array:
Parameters
----------
x: array
input array. Should have a complex floating-point data type.
input array. Must have a numeric data type.
Returns
-------
Expand All @@ -879,6 +879,8 @@ def conj(x: array, /) -> array:
Notes
-----
- Whether the returned array and the input array share the same underlying memory is unspecified and thus implementation-defined.
.. versionadded:: 2022.12
"""

Expand Down Expand Up @@ -2346,7 +2348,7 @@ def real(x: array, /) -> array:
Parameters
----------
x: array
input array. Should have a complex floating-point data type.
input array. Must have a numeric data type.
Returns
-------
Expand All @@ -2356,6 +2358,8 @@ def real(x: array, /) -> array:
Notes
-----
- Whether the returned array and the input array share the same underlying memory is unspecified and thus implementation-defined.
.. versionadded:: 2022.12
"""

Expand Down

0 comments on commit 071780c

Please sign in to comment.