New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@vectorize doesn't work with Numpy arrays (NotImplementedError) #5175
Comments
@tjorda01 thanks for reporting this, I can reproduce locally, but this will still need some triage. |
@esc Thanks for your prompt reply and confirming that you're able to reproduce. |
@tjorda01 I have looked at this in more detail, and it seems you may not be using |
@tjorda01 do you require any additional advice on this one, or may I close it? |
I think documentation para 1.6 should have an introduction sentence that says there are two Numpy universal functions: @vectorize and @guvectorize.
@vectorize for scalars and @guvectorize for arrays.
Tom Jordan
USA Archery Level 3 Coach
…On Feb 3, 2020, 08:24, at 08:24, Valentin Haenel ***@***.***> wrote:
@tjorda01 do you require any additional advice on this one, or may I
close it?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#5175 (comment)
|
@tjorda01 indeed, that would be a good idea. Pull-requests are welcome, as usual. 🙏 |
As title. Closes numba#5175
When I use
@vectorize
with Numpy arrays, Numba displays this error message:NotImplementedError: array(float64, 2d, A) cannot be represented as a Numpy dtype
I'm using Numba version 0.48.0
Here source code that reproduces the error:
I also tried replacing
range
withprange
, and removing type hints from the function signature but the results are the same.Stacktrace
The text was updated successfully, but these errors were encountered: