[Numpy-discussion] matrices in 1.1

Alan G Isaac aisaac@american....
Fri Mar 21 09:23:30 CDT 2008

On Fri, 21 Mar 2008, Nadav Horesh apparently wrote:
> I would like to see a unification of matrices and arrays. 
> I often do calculation which involve both array processing 
> and linear algebra, and the current solution of having 
> function like dot and inv is not aesthetic. Switching 
> between array and matrix types (or using .A attribute of 
> a matrix) is not convinient either. 

Use ``asmatrix``.  (Does not copy.)

After that the only needed "unification" I have
encountered is that iteration over a matrix should
return arrays (not matrices).  I believe this is
under consideration for 1.1.

Alan Isaac

More information about the Numpy-discussion mailing list