Skip to content

Commit e9a1683

Browse files
authored
Add complex number support to linalg.cross (#559)
1 parent 8cf015e commit e9a1683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spec/API_specification/array_api/linalg.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def cross(x1: array, x2: array, /, *, axis: int = -1) -> array:
4848
Parameters
4949
----------
5050
x1: array
51-
first input array. Should have a real-valued data type.
51+
first input array. Must have a numeric data type.
5252
x2: array
53-
second input array. Must be compatible with ``x1`` for all non-compute axes (see :ref:`broadcasting`). The size of the axis over which to compute the cross product must be the same size as the respective axis in ``x1``. Should have a real-valued data type.
53+
second input array. Must be compatible with ``x1`` for all non-compute axes (see :ref:`broadcasting`). The size of the axis over which to compute the cross product must be the same size as the respective axis in ``x1``. Must have a numeric data type.
5454
5555
.. note::
5656
The compute axis (dimension) must not be broadcasted.

0 commit comments

Comments
 (0)