Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Charles R Harris
On Sat, Mar 22, 2008 at 7:02 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > On Sat, Mar 22, 2008 at 5:49 PM, Alan G Isaac > > <[EMAIL PROTECTED]> wrote: > >> Are you trying to suggest that in most matrix programming > >> languages if you extract a row you will then need to use two > >> indices

Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Alan G Isaac
> On Sat, Mar 22, 2008 at 5:49 PM, Alan G Isaac > <[EMAIL PROTECTED]> wrote: >> Are you trying to suggest that in most matrix programming >> languages if you extract a row you will then need to use two >> indices to extract an element of that row? This does not >> match my experience. I woul

Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Charles R Harris
On Sat, Mar 22, 2008 at 4:43 PM, Gael Varoquaux < [EMAIL PROTECTED]> wrote: > On Fri, Mar 21, 2008 at 06:12:09PM -0500, Travis E. Oliphant wrote: > > > I still kinda like the idea of using the call operator for matrix > > > multiplication, i.e. A(v) := dot(A,v). > > Interesting idea.I kind of

Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Gael Varoquaux
On Fri, Mar 21, 2008 at 06:12:09PM -0500, Travis E. Oliphant wrote: > > I still kinda like the idea of using the call operator for matrix > > multiplication, i.e. A(v) := dot(A,v). > Interesting idea.I kind of like that too. I don't. I think some people are going to scratch their head wonderi

Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Stéfan van der Walt
Hi Alan On Sat, Mar 22, 2008 at 5:49 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > Are you trying to suggest that in most matrix programming > languages if you extract a row you will then need to use two > indices to extract an element of that row? This does not > match my experience. I woul

Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Alan G Isaac
On Sat, 22 Mar 2008, Stéfan van der Walt apparently wrote: > maybe you can post a link as a reminder http://projects.scipy.org/pipermail/numpy-discussion/2008-February/031548.html> > In the matrix world, everything has a minimum dimension of > 2, so I don't see how you can contain ndarrays in

Re: [Numpy-discussion] matrices in 1.1

2008-03-22 Thread Stéfan van der Walt
On Sat, Mar 22, 2008 at 4:40 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > Hi Alan > > > On Fri, Mar 21, 2008 at 7:11 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > On Fri, 21 Mar 2008, Stéfan van der Walt apparently wrote: > > > The last I remember, we considered adding RowVector, > >

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Charles R Harris
2008/3/21 Alan G Isaac <[EMAIL PROTECTED]>: > On Sat, 22 Mar 2008, Nadav Horesh apparently wrote: > A*v > ... > > ValueError: objects are not aligned > > This is just how I want matrices to act! > > If A is m׳n, then v should be n׳1 > for A*v to be defined. Anything else > is trouble wait

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Alan G Isaac
On Sat, 22 Mar 2008, Nadav Horesh apparently wrote: A*v ... > ValueError: objects are not aligned This is just how I want matrices to act! If A is m׳n, then v should be n׳1 for A*v to be defined. Anything else is trouble waiting to happen. But it seems that Charles's proposal would ma

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Nadav Horesh
dge. Nadav. -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Travis E. Oliphant נשלח: ש 22-מרץ-08 01:12 אל: Discussion of Numerical Python נושא: Re: [Numpy-discussion] matrices in 1.1 Charles R Harris wrote: > > > On Fri, Mar 21, 2008 at 1:57 PM, Alan G Isaac <[EMAIL PRO

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Travis E. Oliphant
Charles R Harris wrote: > > > On Fri, Mar 21, 2008 at 1:57 PM, Alan G Isaac <[EMAIL PROTECTED] > > wrote: > > On Fri, 21 Mar 2008, Nadav Horesh apparently wrote: > > But asmatrix returns a matrix object and any subsequent > > operation of it returns a matrix.

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Charles R Harris
On Fri, Mar 21, 2008 at 1:57 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > On Fri, 21 Mar 2008, Nadav Horesh apparently wrote: > > 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 operatio

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Alan G Isaac
On Fri, 21 Mar 2008, Nadav Horesh apparently wrote: > 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. I suspect what you are really wanting is a way for NumPy to de

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Nadav Horesh
example APL's . operator. Nadav. -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם 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 unific

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Alan G Isaac
On Fri, 21 Mar 2008, Stéfan van der Walt apparently wrote: > The last I remember, we considered adding RowVector, > ColumnVector and letting slices out of a matrix either be > one of those or a matrix itself. There was a subsequent discussion. > I simply don't see a Matrix as a container of nd

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Stéfan van der Walt
On Fri, Mar 21, 2008 at 3:23 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > 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 solu

Re: [Numpy-discussion] matrices in 1.1

2008-03-21 Thread Alan G Isaac
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