Closed idf closed 9 years ago
One other issue with += to watch out for here is that because it is in-place it doesn't promote the dtype the way normal assignment does. So something like a=np.arange(10); a *= np.pi won't do what you probably want.
http://stackoverflow.com/questions/19417649/numpy-weird-behavior-with-plus-equal-with-slicing
Before is float32, after is float64. The data type changed.