array-api icon indicating copy to clipboard operation
array-api copied to clipboard

What does `matrix_transpose` do when passed an array with fewer than 2 dimensions?

Open brycelelbach opened this issue 9 months ago • 2 comments

The specification for `matrix_transpose does not specify what it does when you pass it a matrix with fewer than 2 dimensions. Do you get an error? Does it just return the array?

brycelelbach avatar May 01 '25 17:05 brycelelbach

I think it should be an error.

shoyer avatar May 15 '25 18:05 shoyer

We discussed this in the community meeting yesterday. There was agreement that this should be an error. @kgryte took the action to verify that this is already the case in all implementations, before closing this issue by making raising an exception required in the spec.

rgommers avatar May 16 '25 06:05 rgommers