Fix off-by-ones in numeric_util
Fix off-by-ones in numeric_util

These should just cut the loop one index earlier. No impact on the
result.

Pireax/rust-ndarray,SuperFluffy/rust-ndarray,SuperFluffy/rust-ndarray,Pireax/rust-ndarray