From: Alan G I. <ai...@am...> - 2006-07-18 08:02:50
|
On Mon, 17 Jul 2006, John Lawless apparently wrote: >>>> from scipy import * >>>> a =3D array((1.2)) >>>> a +=3D 1.3j >>>> a > array(1.2) > Shouldn't this generate either an error or an up-cast, rather than > silently discarding the imaginary part? As I understand it: it cannot upcast, as the '+=3D' operation will use only the memory initially allocated for a. Cheers, Alan Isaac |