-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Document that using plain np.float (and maybe others) is not supported yet. #3068
Comments
This is a problem because Numba doesn't recognize I think it is an easy fix to make sure we handle the expected aliasing of |
At developer meeting today, we mentioned that we probably want to handle |
This tripped me up, and the workaround is easy enough. Could I please request that it be documented? A general mention that numba does not yet recognize |
@hsaliak we recently merged the feature that @sklam mentions above: Beyond that, I'll modify the title and labels of this PR to make it a feature request. It may also be worthwhile looking through the issue tracker for an issue that tracks implementing support for using |
Additionally: from numba import njit
import numpy as np
@njit
def make_array():
return np.array((1, 2), dtype=float)
make_array() (using a plain
|
Note |
Just for clarity (I'm not sure if your comment pertains to mine just prior or not) the issue with the example I posted is using the Python |
Apologies, I should have been more clear, my comment is WRT the OP. Python |
Feature request
Reporting a bug
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).
I ran into this weird error when trying to use np.empty in a function definition compiled with numba, and turning on nopython=True to make sure optimized typing is in effect. It's weird because numba claims to support np.empty with the first two arguments, and I am only using the first two arguments (correctly I think?), so I don't know why it's not typing correctly.
After defining the above function in an ipython notebook,
Gives the following error message:
The text was updated successfully, but these errors were encountered: