Re: [Numpy-discussion] tensor product

2006-10-09 Thread Charles R Harris
On 10/9/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: Charles R Harris wrote:>>> On 10/9/06, *Tim Hochberg* <[EMAIL PROTECTED]> [EMAIL PROTECTED] >> wrote:>> >> Is this not the same things as numpy.multiply.outer(a, b)? (as> opposed> to outer(a, b), which appears to pretend that ev

Re: [Numpy-discussion] tensor product

2006-10-09 Thread Travis Oliphant
Charles R Harris wrote: > > > On 10/9/06, *Tim Hochberg* <[EMAIL PROTECTED] > > wrote: > > > > Is this not the same things as numpy.multiply.outer(a, b)? (as > opposed > to outer(a, b), which appears to pretend that everything is a > vector -- > I

Re: [Numpy-discussion] tensor product

2006-10-09 Thread Charles R Harris
On 10/9/06, Tim Hochberg <[EMAIL PROTECTED]> wrote: Is this not the same things as numpy.multiply.outer(a, b)? (as opposed to outer(a, b), which appears to pretend that everything is a vector --I'm not sure what the point of that is).Hmmm, yes, multiply.outer does do that. I thought that outer was

Re: [Numpy-discussion] tensor product

2006-10-09 Thread Tim Hochberg
Charles R Harris wrote: > Hi Nadav, > > On 10/8/06, *Nadav Horesh* <[EMAIL PROTECTED] > > wrote: > > > There is a "tensortdot" function in numpy1.0rc1 > > > > The tensordot is not the same thing as a tensor product. What I want > is the following: > > def tensor(a, b

Re: [Numpy-discussion] tensor product

2006-10-09 Thread Travis Oliphant
Charles R Harris wrote: > Hmmm, > > I notice that there is no longer a tensor product. As it was the only > one of the outer, kron bunch that I really wanted, l miss it. In fact, > I always thought outer should act like the tensor product for the > other binary operators too. Anyway, mind if I p

Re: [Numpy-discussion] tensor product

2006-10-08 Thread Charles R Harris
Hi Nadav,On 10/8/06, Nadav Horesh <[EMAIL PROTECTED]> wrote: There is a "tensortdot" function in numpy1.0rc1 The tensordot is not the same thing as a tensor product. What I want is the following: def tensor(a, b) :     """Tensor product of a and b         """     a = asarray(a)     b = asarray(b)

Re: [Numpy-discussion] tensor product

2006-10-07 Thread Nadav Horesh
There is a "tensortdot" function in numpy1.0rc1 Nadav -Original Message- From: [EMAIL PROTECTED] on behalf of Charles R Harris Sent: Sun 08-Oct-06 06:54 To: numpy-discussion@lists.sourceforge.net Cc: Subject: [Numpy-discussion] tensor product Hmmm, I n

[Numpy-discussion] tensor product

2006-10-07 Thread Charles R Harris
Hmmm,I notice that there is no longer a tensor product. As it was the only one of the outer, kron bunch that I really wanted, l miss it. In fact, I always thought outer should act like the tensor product for the other binary operators too. Anyway, mind if I put it back? Chuck --