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

Regarding return type of matrix_rank in Linear_Algebra module

Open RickSanchezStoic opened this issue 3 years ago • 1 comments

https://data-apis.org/array-api/latest/extensions/generated/signatures.linalg.matrix_rank.html states that the return type should be float. Is this correct? If so, why is that? All the frameworks : torch, TensorFlow , Jax return an int type or variant.

RickSanchezStoic avatar Aug 03 '22 16:08 RickSanchezStoic

@RickSanchezStoic Thanks for filing this issue. You are correct. The return type should be the default integer data type.

kgryte avatar Aug 03 '22 17:08 kgryte