From d57bc5d2e71f5468d8e1bbdce19e3ce737e58c25 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Wed, 16 Nov 2022 23:24:35 +0100 Subject: [PATCH] Fix mistake in description of return dtype for `matrix_rank` This was a simple mistake, not discussed in the review for the PR that added `matrix_rank` (gh-128). Closes gh-469 --- spec/API_specification/array_api/linalg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/API_specification/array_api/linalg.py b/spec/API_specification/array_api/linalg.py index 43cf983e8..b3595e1fa 100644 --- a/spec/API_specification/array_api/linalg.py +++ b/spec/API_specification/array_api/linalg.py @@ -272,7 +272,7 @@ def matrix_rank(x: array, /, *, rtol: Optional[Union[float, array]] = None) -> a Returns ------- out: array - an array containing the ranks. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion` and must have shape ``(...)`` (i.e., must have a shape equal to ``shape(x)[:-2]``). + an array containing the ranks. The returned array must have the default integer data type and must have shape ``(...)`` (i.e., must have a shape equal to ``shape(x)[:-2]``). """ def matrix_transpose(x: array, /) -> array: