Could make this inline with `NPY_INLINE`.