Re: [Numpy-discussion] dot product not behaving as expected

2007-10-08 Thread Robert Kern
Robin wrote: > > On 10/8/07, *Robert Kern* <[EMAIL PROTECTED] > > wrote: > > Aha. Yes, that is the correct way to do it. However, it appears that > there is a > bug in how dot() is interpreting the non-contiguous array. In the > meantime, you > can ma

Re: [Numpy-discussion] dot product not behaving as expected

2007-10-08 Thread Robin
On 10/8/07, Robert Kern <[EMAIL PROTECTED]> wrote: > > Aha. Yes, that is the correct way to do it. However, it appears that there > is a > bug in how dot() is interpreting the non-contiguous array. In the > meantime, you > can make a contiguous array with array(y2). Thanks very much for the promp

Re: [Numpy-discussion] dot product not behaving as expected

2007-10-08 Thread Robert Kern
Robin wrote: > It works for me with a recent SVN numpy on OS X. What version of > numpy are you > using? What platform are you on? Did you build with ATLAS or other > optimized > linear algebra library? > > > I am on Ubuntu 7.04, gcc 4.1.2 > > In [181]: numpy.__version__ > Ou

Re: [Numpy-discussion] dot product not behaving as expected

2007-10-08 Thread Robin
> > It works for me with a recent SVN numpy on OS X. What version of numpy are > you > using? What platform are you on? Did you build with ATLAS or other > optimized > linear algebra library? I am on Ubuntu 7.04, gcc 4.1.2 In [181]: numpy.__version__ Out[181]: '1.0.4.dev4155' Built with ATLAS 3

Re: [Numpy-discussion] dot product not behaving as expected

2007-10-08 Thread Robert Kern
Robin wrote: > Hi, > > I have a problem using numpy.dot, see below: > > In [151]: m=5 > > In [152]: n=5 > > In [153]: x=(m*ones((1,5)))**arange(0,n) > > In [154]: y=test.order_length[::-1] > > In [155]: x > Out[155]: array([[ 1.,5., 25., 125., 625.]]) > > In [156]: y > Out[156]: >

[Numpy-discussion] dot product not behaving as expected

2007-10-08 Thread Robin
Hi, I have a problem using numpy.dot, see below: In [151]: m=5 In [152]: n=5 In [153]: x=(m*ones((1,5)))**arange(0,n) In [154]: y=test.order_length[::-1] In [155]: x Out[155]: array([[ 1.,5., 25., 125., 625.]]) In [156]: y Out[156]: array([[ 1024.], [ 1280.], [ 640.]