Re: [Numpy-discussion] defmatrix.py

2007-03-27 Thread Colin J. Williams
Charles R Harris wrote: > > > On 3/26/07, *Travis Oliphant* <[EMAIL PROTECTED] > > wrote: > > Charles R Harris wrote: > > > > > > > The rule 1-d is always a *row* vector only applies when > converting > > to a > > matrix. >

Re: [Numpy-discussion] defmatrix.py

2007-03-27 Thread Colin J. Williams
Charles R Harris wrote: > > > On 3/26/07, *Travis Oliphant* <[EMAIL PROTECTED] > > wrote: > > > > I think that might be the simplest thing, dot overrides subtypes. > BTW, > > here is another ambiguity > > > > In [6]: dot(array([[1]]),ones(2)) >

Re: [Numpy-discussion] defmatrix.py

2007-03-27 Thread Sven Schreiber
Travis Oliphant schrieb: > O.K. So, the problem is that when I defined matrix multiplication, I > mistakenly believed that dot always interpreted 1-d arrays as row > vectors which it is now clear it doesn't. > > I think this led to the issues. > > So, making dot always return arrays seems li

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Charles R Harris
On 3/26/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: Charles R Harris wrote: > > > The rule 1-d is always a *row* vector only applies when converting > to a > matrix. > > In this case, the dot operator does not "convert to a matrix" but > uses > rules for operating wit

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Travis Oliphant
Charles R Harris wrote: > > > The rule 1-d is always a *row* vector only applies when converting > to a > matrix. > > In this case, the dot operator does not "convert to a matrix" but > uses > rules for operating with mixed 2-d and 1-d arrays inherited from > Numeric. >

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Charles R Harris
On 3/26/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > I think that might be the simplest thing, dot overrides subtypes. BTW, > here is another ambiguity > > In [6]: dot(array([[1]]),ones(2)) > --- > exceptions.ValueError

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Travis Oliphant
> I think that might be the simplest thing, dot overrides subtypes. BTW, > here is another ambiguity > > In [6]: dot(array([[1]]),ones(2)) > --- > exceptions.ValueErrorTraceback (most > recent

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Charles R Harris
On 3/26/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: Charles R Harris wrote: > > > On 3/26/07, *Travis Oliphant* <[EMAIL PROTECTED] > > wrote: > > Charles R Harris wrote: > > > > > > > On 3/26/07, *Nils Wagner* <[EMAIL PROTECTED] >

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Travis Oliphant
Charles R Harris wrote: > > > On 3/26/07, *Travis Oliphant* <[EMAIL PROTECTED] > > wrote: > > Charles R Harris wrote: > > > > > > > On 3/26/07, *Nils Wagner* <[EMAIL PROTECTED] > > > >> wro

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Charles R Harris
On 3/26/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: Charles R Harris wrote: > > > On 3/26/07, *Nils Wagner* <[EMAIL PROTECTED] > > wrote: > > Charles R Harris wrote: > > > > > > On 3/25/07, *Nils Wagner* <[EMAIL PROTECTED] >

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Travis Oliphant
Charles R Harris wrote: > > > On 3/26/07, *Nils Wagner* <[EMAIL PROTECTED] > > wrote: > > Charles R Harris wrote: > > > > > > On 3/25/07, *Nils Wagner* <[EMAIL PROTECTED] > > > >> wrote: >

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Charles R Harris
On 3/26/07, Nils Wagner <[EMAIL PROTECTED]> wrote: Charles R Harris wrote: > > > On 3/25/07, *Nils Wagner* <[EMAIL PROTECTED] > > wrote: > > Hi, > > Ok, things should be working now. In order to get rid of the scipy problems I just needed to rm the scipy package

Re: [Numpy-discussion] defmatrix.py

2007-03-26 Thread Nils Wagner
Charles R Harris wrote: > > > On 3/25/07, *Nils Wagner* <[EMAIL PROTECTED] > > wrote: > > Hi, > > > > > BTW, I can't import scipy.sparse, I get the following error: > > ImportError: cannot import name densetocsr > > What am I doing wrong? > > Chuck > ---

Re: [Numpy-discussion] defmatrix.py

2007-03-25 Thread Charles R Harris
On 3/25/07, Nils Wagner <[EMAIL PROTECTED]> wrote: Hi, BTW, I can't import scipy.sparse, I get the following error: ImportError: cannot import name densetocsr What am I doing wrong? Chuck ___ Numpy-discussion mailing list Numpy-discussion@scipy

Re: [Numpy-discussion] defmatrix.py

2007-03-25 Thread Charles R Harris
On 3/25/07, Nils Wagner <[EMAIL PROTECTED]> wrote: Hi, Several tests didn't pass due to the recent changes in defmatrix.py. Nils == ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_csc) ---

[Numpy-discussion] defmatrix.py

2007-03-24 Thread Nils Wagner
Hi, Several tests didn't pass due to the recent changes in defmatrix.py. Nils == ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_csc) -- Traceback (