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

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

Open oleksandr-pavlyk opened this issue 1 year ago • 1 comments

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.

oleksandr-pavlyk avatar May 03 '24 15:05 oleksandr-pavlyk

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.

kgryte avatar May 03 '24 18:05 kgryte