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 <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Ralf Gommers <ralf.gommers@gmail.com>
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

Lines changed: 6 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy