From: Charles R H. <cha...@gm...> - 2006-10-09 02:19:03
|
Hi Nadav, On 10/8/06, Nadav Horesh <na...@vi...> 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) return outer(a, b).reshape(a.shape + b.shape) Chuck |