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
With new casting rules, input arrays must be specified as a float inorder for np.divide to work. Otherwise casting of np.divide must be set to 'unsafe'
A = np.ones(3)*1
A.astype('float') # Possible fix
B = np.ones(3)*2
B.astype('float') # Possible fix
np.divide(A,2,out=A, casting='unsafe') # Alternative Fix
The text was updated successfully, but these errors were encountered:
With new casting rules, input arrays must be specified as a float inorder for np.divide to work. Otherwise casting of np.divide must be set to 'unsafe'
A = np.ones(3)*1
A.astype('float') # Possible fix
B = np.ones(3)*2
B.astype('float') # Possible fix
np.divide(A,2,out=A, casting='unsafe') # Alternative Fix
The text was updated successfully, but these errors were encountered: