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 ?
>
>
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
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
>
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.
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
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