Observe that `nn` is at most `signal.size() - 1`, which occurs on the final pass of the loop. Therefore, `std::min` will always pick `nn` instead of `signal.size() - 1`, so simplify out the call. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |
Observe that `nn` is at most `signal.size() - 1`, which occurs on the final pass of the loop. Therefore, `std::min` will always pick `nn` instead of `signal.size() - 1`, so simplify out the call. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |