[Numpy-discussion] defmatrix.py

Charles R Harris charlesr.harris at gmail.com
Mon Mar 26 16:22:13 EDT 2007


On 3/26/07, Travis Oliphant <oliphant at ee.byu.edu> wrote:
>
> Charles R Harris wrote:
>
> >
> >
> > On 3/26/07, *Nils Wagner* <nwagner at iam.uni-stuttgart.de
> > <mailto:nwagner at iam.uni-stuttgart.de>> wrote:
> >
> >     Charles R Harris wrote:
> >     >
> >     >
> >     > On 3/25/07, *Nils Wagner* <nwagner at iam.uni-stuttgart.de
> >     <mailto:nwagner at iam.uni-stuttgart.de>
> >     > <mailto: nwagner at iam.uni-stuttgart.de
> >     <mailto:nwagner at iam.uni-stuttgart.de>>> wrote:
> >     >
> >     >     Hi,
> >     >
> >     >
> >
> >  <snip>
> >
> > Ok, things should be working now. In order to get rid of the scipy
> > problems I just needed to rm the scipy package in site-packages and
> > then reinstall.
> >
> > I still need to figure out a real fix down in the dot routine because
>
>
> No, don't fix the dot routine.  Remember the dot routine should accept
> mixed 2-d arrays and 1-d arrays because it is more general than matrix
> multiplication.


Sure, but it can't return a row vector when multiplying a 1-d vector. It
just ain't mathematically possible no matter how the 1-d vector is
interpreted. It needs to return either a column vector or a 1-d vector.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070326/c7cd706e/attachment.html>


More information about the NumPy-Discussion mailing list