From: Charles G W. <cg...@al...> - 2001-07-18 15:05:22
|
Nils Wagner writes: > > How can I rearrange the result of outerproduct to the result of > Kronecker product with numpy ? > def kron(a,b): o = outerproduct(a,b) o.shape = a.shape + b.shape return concatenate(concatenate(o, axis=1), axis=1) |