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
Hi, would a simple solution be to just call np.size() outside of the njit function? I am new to this, but here is my attempt to use np.size() over .size:
@SDanielDev , The concept here is about having a native Numba support, not bypassing it.
Specifically, it is better to avoid using global variables. A simpler and better solution would be using vX.size instead of np.size() which works as shown above.
The Bug
It seems Numba support the
ndarray
property of an array (Seenumpy.ndarray.size
) yet fails with the functionnp.size()
.Code for Producing the Bug
The following works:
While this will fail:
The error is:
System Information
0.59.0
.3.12
.1.26.4
.The text was updated successfully, but these errors were encountered: