From eb14c6524dafc7c49e757a91b1b49ca80ec87820 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Mon, 12 Dec 2022 01:50:16 -0800 Subject: [PATCH] Add complex number support to `linalg.cross` --- spec/API_specification/array_api/linalg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/API_specification/array_api/linalg.py b/spec/API_specification/array_api/linalg.py index b3595e1fa..04d491949 100644 --- a/spec/API_specification/array_api/linalg.py +++ b/spec/API_specification/array_api/linalg.py @@ -48,9 +48,9 @@ def cross(x1: array, x2: array, /, *, axis: int = -1) -> array: Parameters ---------- x1: array - first input array. Should have a real-valued data type. + first input array. Must have a numeric data type. x2: array - 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. + 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. .. note:: The compute axis (dimension) must not be broadcasted.