[Numpy-discussion] untenable matrix behavior in SVN
Charles R Harris
charlesr.harris at gmail.com
Tue Apr 29 17:26:09 EDT 2008
On Tue, Apr 29, 2008 at 3:07 PM, Gael Varoquaux <
gael.varoquaux at normalesup.org> wrote:
> On Tue, Apr 29, 2008 at 11:03:58PM +0200, Anne Archibald wrote:
> > I am puzzled by this. What is the rationale for x[i,:] not being a 1-d
> > object?
>
> It breaks A*B[i, :] where A and B are matrices.
A*B[:,i], surely.
So it's a notational problem, what is the easiest way to get row/col vectors
out of a matrix. And it will be helpful if the notation is consistent and
easy to understand. In any case, dot doesn't care, so the fault above comes
from the matrix class itself.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080429/3f94516a/attachment.html>
More information about the NumPy-Discussion
mailing list