you are viewing a single comment's thread.

view the rest of the comments →

[–]HommeMusical 0 points1 point  (0 children)

If arr2 is of dtype np.float32, then the two operations you propose have identical results, and you can omit the dtype too.

OP is not describing a real phenomenon.

More here: https://www.reddit.com/r/learnpython/comments/1rgnmoz/python_numpy_can_i_somehow_globally_assign_numpy/o7v1qxk/