[Numpy-discussion] matrices in 1.1
Nadav Horesh
nadavh@visionsense....
Fri Mar 21 14:00:25 CDT 2008
But asmatrix returns a matrix object and any subsequent operation of it returns a matrix. What I am thinking about is a convenient way to apply matrix operation on an array.
BTW, A matrix is just a rank 2 tensor, so matrix (tensor) algebra can be applied to an arbitrary rank tensor, for example APL's . operator.
Nadav.
-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם Alan G Isaac
נשלח: ו 21-מרץ-08 16:23
אל: Discussion of Numerical Python
נושא: Re: [Numpy-discussion] matrices in 1.1
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.
Cheers,
Alan Isaac
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3411 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080321/e9ce8982/attachment.bin
More information about the Numpy-discussion
mailing list