[Numpy-discussion] Nasty bug using pre-initialized arrays

Gael Varoquaux gael.varoquaux@normalesup....
Fri Jan 4 17:22:10 CST 2008


On Fri, Jan 04, 2008 at 03:53:41PM -0700, Charles R Harris wrote:
>    Matlab support for different types was sort of kludged on. Matlab was
>    intended for computational convenience, not control of data types, and
>    started out as pretty much all doubles and double complex, it didn't
>    (doesn't?) even have integers.

In has integers arrays, and does not upcast to double arrays. My
experience is that you are better off avoiding these (unless you talk to
hardware, which is why I use them) because many things won't work with
them.

Cheers,

Gaël


More information about the Numpy-discussion mailing list