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
[ ] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.
I have a script I run that works in version 0.55.2 but fails in the new 0.56.0 version. Here's what it looks like:
@numba.jit(nopython=True, parallel=True)
def optimizedCalc(x_array,y_array,e_array,theta,phi,const):
wave_final=np.zeros(phi.shape)*1j
S1=np.sin(theta)*np.cos(phi)
S2=np.sin(theta)*np.sin(phi)
output=np.zeros(phi.shape)1j
for ii in range(len(e_array)):
output+=excitation[ii]np.exp(1jconst(x_array[ii]*S1+y_array[ii]*S2))
return output
If I mark parallel = False it works, it's only when it's true that it does not work.
Also if you're wondering why I use range() instead of prange() - it's because prange() does the calculation incorrectly.
The text was updated successfully, but these errors were encountered:
Reporting a bug
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
i.e. it's possible to run as 'python bug.py'.
I have a script I run that works in version 0.55.2 but fails in the new 0.56.0 version. Here's what it looks like:
@numba.jit(nopython=True, parallel=True)
def optimizedCalc(x_array,y_array,e_array,theta,phi,const):
wave_final=np.zeros(phi.shape)*1j
S1=np.sin(theta)*np.cos(phi)
S2=np.sin(theta)*np.sin(phi)
output=np.zeros(phi.shape)1j
for ii in range(len(e_array)):
output+=excitation[ii]np.exp(1jconst(x_array[ii]*S1+y_array[ii]*S2))
return output
If I mark parallel = False it works, it's only when it's true that it does not work.
Also if you're wondering why I use range() instead of prange() - it's because prange() does the calculation incorrectly.
The text was updated successfully, but these errors were encountered: