Code Style Numba Vectorize Use vectorize when returning an array. It's the fasted way. njit Use njit when returning a single value (float, int).