Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 4 additions & 1 deletion spec/API_specification/array_api/array_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,13 @@ def __neg__(self: array, /) -> array:
.. note::
For signed integer data types, the numerical negative of the minimum representable integer is implementation-dependent.

.. note::
If ``self`` has a complex floating-point data type, both the real and imaginary components for each ``self_i`` must be negated (a result which follows from the rules of complex number multiplication).

Parameters
----------
self: array
array instance. Should have a real-valued data type.
array instance. Should have a numeric data type.

Returns
-------
Expand Down
5 changes: 4 additions & 1 deletion spec/API_specification/array_api/elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,13 @@ def negative(x: array, /) -> array:
.. note::
For signed integer data types, the numerical negative of the minimum representable integer is implementation-dependent.

.. note::
If ``x`` has a complex floating-point data type, both the real and imaginary components for each ``x_i`` must be negated (a result which follows from the rules of complex number multiplication).

Parameters
----------
x: array
input array. Should have a real-valued data type.
input array. Should have a numeric data type.

Returns
-------
Expand Down