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
Numpy arrays not properly working with scalar multiplication. If you try to multiply a scalar into a numpy array then you get a Type Error: Unsupported types. This only happens if you have the scalar in front of the array, if you have the scalar after the array then it works as expected
Screenshots
Expected behavior:
Error:
Strangely I just realized if you do np.array * scalar then it works, but if you have the scalar in front of the array it does not work properly.
To Reproduce
create a numpy arr and multiply by a scalar (scalar in front)
Expected behavior
The scalar should multiply by each element in the array and return the scaled array
Environment
Epsilon version 21.3.0.
Online simulator. And handheld
The text was updated successfully, but these errors were encountered:
Describe the bug
Numpy arrays not properly working with scalar multiplication. If you try to multiply a scalar into a numpy array then you get a Type Error: Unsupported types. This only happens if you have the scalar in front of the array, if you have the scalar after the array then it works as expected
Screenshots
Expected behavior:

Error:

Strangely I just realized if you do np.array * scalar then it works, but if you have the scalar in front of the array it does not work properly.
To Reproduce
create a numpy arr and multiply by a scalar (scalar in front)
Expected behavior
The scalar should multiply by each element in the array and return the scaled array
Environment
The text was updated successfully, but these errors were encountered: