diff options
author | Pieter Eendebak <pieter.eendebak@gmail.com> | 2022-05-03 14:52:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 14:52:12 +0200 |
commit | 5c740d0ca3d35c151c5120a551a69319ffac04d9 (patch) | |
tree | 5ec156f3e2e7deb9228fe4ef6e3dee530a1c12f2 /numpy/array_api/_array_object.py | |
parent | b222eb66c79b8eccba39f46f020ed8303614a87f (diff) | |
download | numpy-5c740d0ca3d35c151c5120a551a69319ffac04d9.tar.gz |
PERF: Reduce overhead of np.linalg.norm for small arrays (#21394)
Reduce the overhead of np.linalg.norm by replacing dot(x,x) with x.dot(x).
This is OK, since `x` is converted to a base-class array here.
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions