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.
R
Raymond Hettinger committed
745c0f3980c56e88db6a57311fb20ea11005565b
Parent: aada63b
Committed by GitHub <noreply@github.com>
on 8/31/2018, 6:22:13 PM