[Numpy-discussion] array vs. matrix for matlab-compatible stuff

Sven Schreiber svetosch at gmx.net
Thu Jan 19 12:54:21 CST 2006

Travis Oliphant schrieb:

> Yes, some of them do still return arrays.  Matrices are longer lived in
> NumPy then the were in Numeric, for sure, but many functions still
> aren't friendly to matrices and convert all inputs to arrays before
> operation.   Originally, I had the asarray(...) function not convert
> matrices by default, but this is too surprising because matrices change
> the '*' and '**' operators which could make your function not work.
> We should convert all the functions that don't handle matrices so they
> will.  I'd like to see matrices survive longer than they do.   There are
> some functions that try to do that

Thanks very much for this useful information! I totally agree, long live the matrices...
In the ebook you are selling, are things like that (which functions preserve matrix-type)
documented? Those kind of things would be a reason for me to buy it.


More information about the Numpy-discussion mailing list