diff options
| author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-08-31 18:22:13 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-31 18:22:13 (GMT) |
| commit | 745c0f3980c56e88db6a57311fb20ea11005565b (patch) | |
| tree | 3e30526475411529eecd9a32fbfb78e4d9140714 /Python/pystate.c | |
| parent | aada63b20ec64bbfc4f2fb0718fc563eedbdd36a (diff) | |
| download | cpython-745c0f3980c56e88db6a57311fb20ea11005565b.zip cpython-745c0f3980c56e88db6a57311fb20ea11005565b.tar.gz cpython-745c0f3980c56e88db6a57311fb20ea11005565b.tar.bz2 | |
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/pystate.c')
0 files changed, 0 insertions, 0 deletions
