You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like Numba's math.erf does not support complex numbers, which means that our transpilations won't either.
For example:
importmathimportnumbaasnbimportscipy@nb.njitdefmath_erf_fn(x):
returnmath.erf(x)
math_erf_fn(1.0)
# 0.8427007929497149math_erf_fn(complex(1.0))
# TypingError: Failed in nopython mode pipeline (step: nopython frontend)# No implementation of function Function(<built-in function erf>) found for signature:## >>> erf(complex128)@nb.njitdefscipy_erf_fn(x):
returnscipy.special.erf(x)
scipy_erf_fn(1.0)
# 0.8427007929497148scipy_erf_fn(complex(1.0))
# TypingError: Failed in nopython mode pipeline (step: nopython frontend)# No implementation of function Function(<ufunc 'erf'>) found for signature:## >>> erf(complex128)
This was observed via tests.tensor.test_math_scipy failures in #1289.
The text was updated successfully, but these errors were encountered:
brandonwillard
changed the title
Missing complex value support for Numba special functions
Missing complex value support for SciPy special functions in Numba
Nov 11, 2022
It looks like Numba's
math.erf
does not support complex numbers, which means that our transpilations won't either.For example:
This was observed via
tests.tensor.test_math_scipy
failures in #1289.The text was updated successfully, but these errors were encountered: