[Numpy-discussion] untenable matrix behavior in SVN

Alan G Isaac aisaac@american....
Tue Apr 29 14:20:02 CDT 2008


On Tue, 29 Apr 2008, Gael Varoquaux apparently wrote:
> x[i, :]*A*x[:, i] 
> I find this cleaner, because more explicit, than x[i]*A*x[:, i].

>>         a. would e.g. ``x[i:i+1,:]``

> No way.


So *if* ``x[0]`` is going to be 1d to fix the many anomalies that 
have surfaced, then you would still want ``x[0]==x[0,:]``,
but to have those be 1d and have ``x[i, :]*A*x[:, i]`` work
would require (oriented) "vector" objects, so you would want
those.

Is that a fair summary of your view?

Cheers,
Alan Isaac




More information about the Numpy-discussion mailing list