summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-08-31 11:22:13 -0700
committerGitHub <noreply@github.com>2018-08-31 11:22:13 -0700
commit745c0f3980c56e88db6a57311fb20ea11005565b (patch)
tree3e30526475411529eecd9a32fbfb78e4d9140714 /Python
parentaada63b20ec64bbfc4f2fb0718fc563eedbdd36a (diff)
downloadcpython-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