Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Fix computation of numpy.array_api.linalg.vector_norm (numpy#2…
…1084) * 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 numpy#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
- Loading branch information