data-apis / array-api

RFC document, tooling and other content related to the array API standard
https://data-apis.github.io/array-api/latest/
MIT License
204 stars 42 forks source link

xp.linalg.vecdot should have axis=-1 default #804

Open oleksandr-pavlyk opened 2 months ago

oleksandr-pavlyk commented 2 months ago

xp.linalg.vecdot is documented as alias to xp.vecdot.

However, xp.linalg.vecdot signature uses axis=None default, while xp.vecdot has axis=-1 as the default.

image

image

They should be consistent.

kgryte commented 2 months ago

Hmmm...this should have been fixed already: https://github.com/data-apis/array-api/issues/355. The regression happened during https://github.com/data-apis/array-api/commit/cbbab62922ab7ddd4f31302c21f22d2db62d6f16. I can work on a fix and backport.