Re: [Numpy-discussion] dot operations on multidimensional arrays

2006-12-05 Thread Nadav Horesh
Try numpy.tensordot Nadav -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carsten Rostgaard Sent: Thursday, November 23, 2006 10:06 To: numpy-discussion@scipy.org Subject: [Numpy-discussion] dot operations on multidimensional arrays Hi! I am trying to

Re: [Numpy-discussion] dot operations on multidimensional arrays

2006-12-05 Thread Johannes Loehnert
Hi, > The question is then: > 1) Is there any way to change the axis for which the product-sum is > performed. This can of course be done by a swapaxis before and after the > operation, but this makes the array non-contiguous, in which case the > dot operation often makes bugs (at least in Numeric

Re: [Numpy-discussion] dot operations on multidimensional arrays

2006-12-05 Thread Charles R Harris
On 11/23/06, Carsten Rostgaard <[EMAIL PROTECTED]> wrote: Hi! I am trying to use the "dot" method on multi-(more than 2)-dimensional arrays. Specifically I do >> y = dot(a, b) where a is a 2D array and b is a 3D array. using numpy I get the the help: " dot(...) dot(a,v) returns matrix-

[Numpy-discussion] dot operations on multidimensional arrays

2006-12-05 Thread Carsten Rostgaard
Hi! I am trying to use the "dot" method on multi-(more than 2)-dimensional arrays. Specifically I do >> y = dot(a, b) where a is a 2D array and b is a 3D array. using numpy I get the the help: " dot(...) dot(a,v) returns matrix-multiplication between a and b. The product-sum is over t