commit | 745c0f3980c56e88db6a57311fb20ea11005565b | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Fri Aug 31 11:22:13 2018 -0700 |
committer | GitHub <noreply@github.com> | Fri Aug 31 11:22:13 2018 -0700 |
tree | 3e30526475411529eecd9a32fbfb78e4d9140714 | |
parent | aada63b20ec64bbfc4f2fb0718fc563eedbdd36a [diff] |
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.