[Numpy-discussion] matrix multipln takes too much time

2007-12-25 Thread [EMAIL PROTECTED]
hi i am doing some maths calculations involving matrices of double values using numpy.matrix , java code for this is something like int items=25; int sample=5; int totalcols=8100; double[][]dblarrayone=new double[items][totalcols]; double[][]dblarraytwo=new double[items][totalcols]; //their

Re: [Numpy-discussion] matrix multipln takes too much time

2007-12-25 Thread lorenzo bolla
you can either use matrix multiplication (see resultmatrix2) or tensordot (see resultmatrix3). on my computer I have: 1.15.6 sec with your code 2.0.072 sec with resultmatrix2 3.0.040 sec with tensordot (resultmatrix3) (-- which is a 400x speed)

[Numpy-discussion] distutils_scons_command branch: 2nd step towards scons support in numpy

2007-12-25 Thread David Cournapeau
Hi, I have started publishing the distutils_scons_command branch in numpy svn repository. This implements all the distutils infrastructure necessary to call scons, by using the scons distutils command. In more details: - distutils setup files can ask for a different name for

[Numpy-discussion] Overloading sqrt(5.5)*myvector

2007-12-25 Thread Bruce Sherwood
Sorry to repeat myself and be insistent, but could someone please at least comment on whether I'm doing anything obviously wrong, even if you don't immediately have a solution to my serious problem? There was no response to my question (see copy below) which I sent to both the numpy and Boost

Re: [Numpy-discussion] matrix multipln takes too much time

2007-12-25 Thread [EMAIL PROTECTED]
on my computer I have: 1.15.6 sec with your code 2.0.072 sec with resultmatrix2 3.0.040 sec with tensordot (resultmatrix3) (-- which is a 400x speed) wow ,thanks! the tensordot fn is blinding fast.. i added /modified resultndarray = tensordot(matrixone[:sample,:], matrixtwo.T,