data-apis / array-api-strict

Strict implementation of the Python array API (previously numpy.array_api)
http://data-apis.org/array-api-strict/
Other
10 stars 5 forks source link

vecdot does not conjugate the first argument #97

Open mhvk opened 4 days ago

mhvk commented 4 days ago

The implementation for vecdot should conjugate its first argument for complex numbers, but unfortunately the present implementation does not: https://github.com/data-apis/array-api-strict/blob/d086c619a58f35c38240592ef994aa19ca7beebc/array_api_strict/_linear_algebra_functions.py#L89

(array_api_compat has the same issue: https://github.com/data-apis/array-api-compat/issues/200)