diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-08-31 11:22:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-31 11:22:13 -0700 |
commit | 745c0f3980c56e88db6a57311fb20ea11005565b (patch) | |
tree | 3e30526475411529eecd9a32fbfb78e4d9140714 /Python | |
parent | aada63b20ec64bbfc4f2fb0718fc563eedbdd36a (diff) | |
download | cpython-git-745c0f3980c56e88db6a57311fb20ea11005565b.tar.gz |
Simplify vector_norm() by eliminating special cases in the main loop (GH-9006)
The *max* value is no longer treated as a special case in the main loop. Besides making the main loop simpler and branchless, this also lets us relax the input restriction of *vec* to contain only non-negative values.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions