summaryrefslogtreecommitdiff
path: root/numpy/array_api/linalg.py
Commit message (Collapse)AuthorAgeFilesLines
* BUG: Fix the implementation of numpy.array_api.vecdot (#21928)Aaron Meurer2022-09-071-1/+12
| | | | | | | * Fix the implementation of numpy.array_api.vecdot See https://data-apis.org/array-api/latest/API_specification/generated/signatures.linear_algebra_functions.vecdot.html * Use moveaxis + matmul instead of einsum in vecdot
* MAINT: Fix computation of numpy.array_api.linalg.vector_norm (#21084)Aaron Meurer2022-06-151-8/+31
| | | | | | | | | | | | | | | | | | * Fix computation of numpy.array_api.linalg.vector_norm Various pieces were incorrect due to a lack of complete coverage of this function in the array API test suite. * Fix the output dtype nonstandard vector norm() Previously it would always give float64 because an internal calculation involved a NumPy scalar and a Python float. The fix is to use a 0-D array instead of a NumPy scalar so that it type promotes with the float correctly. Fixes #21083 I don't have a test for this yet because I'm unclear how exactly to test it. * Clean up the numpy.array_api.linalg.vector_norm code a little bit
* Fix a type hint in numpy.array_apiAaron Meurer2022-03-281-1/+1
|
* Properly restrict the input dtypes for the array_api trace, svdvals, and vecdotAaron Meurer2022-03-281-0/+6
|
* Remove some outdated commentsAaron Meurer2022-03-281-2/+0
|
* ENH: Add the linalg extension to the array_api submodule (#19980)Aaron Meurer2021-11-141-0/+408