Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for real-valued arrays in real and conj #884

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 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. Should have a floating-point data type.
ev-br marked this conversation as resolved.
Show resolved Hide resolved

Returns
-------
Expand All @@ -880,6 +880,10 @@ def conj(x: array, /) -> array:
-----

.. versionadded:: 2022.12

A conforming implementation may return a "view" into the input array or a copy. Therefore, whether
the output array and the input array share the underlying memory buffer is unspecified and
thus implementation-defined.
"""


Expand Down Expand Up @@ -2346,7 +2350,7 @@ def real(x: array, /) -> array:
Parameters
----------
x: array
input array. Should have a complex floating-point data type.
input array. Should have a floating-point data type.
ev-br marked this conversation as resolved.
Show resolved Hide resolved

Returns
-------
Expand All @@ -2357,6 +2361,10 @@ def real(x: array, /) -> array:
-----

.. versionadded:: 2022.12

A conforming implementation may return a "view" into the input array or a copy. Therefore, whether
the output array and the input array share the underlying memory buffer is unspecified and
thus implementation-defined.
"""


Expand Down
Loading