Re: Newbie question about numpy

2006-08-25 Thread Paul Johnston
On Thu, 24 Aug 2006 17:23:49 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Thu, 24 Aug 2006 16:38:45 +0100, Paul Johnston ><[EMAIL PROTECTED]> declaimed the following in >comp.lang.python: > >> I know its a long time since my degree but that's not matrix >> multiplication is it ? > >

Re: Newbie question about numpy

2006-08-24 Thread Robert Kern
Avell Diroll wrote: > For matrices multiplication, you could get a hint by typing the > following in the interpreter : > import numpy dir(numpy) help(numpy.matrixmultiply)#type "q" to exit Note that the name matrixmultiply() has been deprecated in favor of dot() for many, man

Re: Newbie question about numpy

2006-08-24 Thread Avell Diroll
Paul Johnston wrote: (snip) > I noted the lack of matrices so installed numpy (snip) > _ > from numpy import * > > a = array([[1,2,3],[4,5,6],[1,2,3]]) > b = array([[1,3,6],[2,5,1],[1,1,1]]) (snip) > print "a * b is \n", a * b >

Re: Newbie question about numpy

2006-08-24 Thread Robert Kern
Paul Johnston wrote: > Hi I'm new to python and have just been taking a look at what it has > to offer. > I noted the lack of matrices so installed numpy You will want to ask numpy questions on the numpy list. http://www.scipy.org/Mailing_Lists numpy arrays are not matrices; they are arrays.

Re: Newbie question about numpy

2006-08-24 Thread Gabriel Genellina
At Thursday 24/8/2006 12:38, Paul Johnston wrote: from numpy import * a = array([[1,2,3],[4,5,6],[1,2,3]]) b = array([[1,3,6],[2,5,1],[1,1,1]]) print "a * b is \n", a * b I know its a long time since my degree but that's not matrix multiplication is it ? No, it's plain element-by-element mu

Newbie question about numpy

2006-08-24 Thread Paul Johnston
Hi I'm new to python and have just been taking a look at what it has to offer. I noted the lack of matrices so installed numpy I know the documentation is chargable so wanted a quick play to see if I should buy it However _ from numpy impo