In many @njit cases, we use fastmath=True. However, this might be bad when the input arguments and/or output results contain np.nan or np.inf (see Numba fastmath). In those cases, we should use more specific but slower fastmath flags like @njit(fastmath={"nsz", "arcp", "contract", "afn", "reassoc"})
We should spend some time to reassessing whether all of the fastmath specifications are accurate or if they need to be updated
In many
@njitcases, we usefastmath=True. However, this might be bad when the input arguments and/or output results containnp.nanornp.inf(see Numba fastmath). In those cases, we should use more specific but slowerfastmathflags like@njit(fastmath={"nsz", "arcp", "contract", "afn", "reassoc"})We should spend some time to reassessing whether all of the
fastmathspecifications are accurate or if they need to be updated