8000 feat: add support for real-valued arrays in `real` and `conj` by ev-br · Pull Request #884 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

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

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

Merged
merged 5 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
docs: update copy
  • Loading branch information
kgryte authored Jan 23, 2025
commit 0b6b3a775ab654fcf8a0978012345ed0969016c3
16 changes: 6 additions & 10 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 numeric data type.
input array. Must have a numeric data type.

Returns
-------
Expand All @@ -879,11 +879,9 @@ def conj(x: array, /) -> array:
Notes
-----

.. versionadded:: 2022.12
- Whether or not the returned array and the input array share the same underlying memory is unspecified and thus implementation-defined.

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.
.. versionadded:: 2022.12
"""


Expand Down Expand Up @@ -2350,7 +2348,7 @@ def real(x: array, /) -> array:
Parameters
----------
x: array
input array. Should have a numeric data type.
input array. Must have a numeric data type.

Returns
-------
Expand All @@ -2360,11 +2358,9 @@ def real(x: array, /) -> array:
Notes
-----

.. versionadded:: 2022.12
- Whether or not the returned array and the input array share the same underlying memory is unspecified and thus implementation-defined.

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.
.. versionadded:: 2022.12
"""


Expand Down
Loading
0