[Numpy-discussion] Tuple outer product?
Mads Ipsen
mpi@comxnet...
Fri Sep 25 12:45:35 CDT 2009
Is there a numpy operation on two arrays, say [1,2,3] and [4,5,6], that
will yield:
[[(1,4),(1,5),(1,6)],[(2,4),(2,5),(2,6)],[(3,4),(3,5),(3,6)]]
Any suggestions are most welcome.
Mads
--
+------------------------------------------------------------+
| Mads Ipsen, Scientific developer |
+------------------------------+-----------------------------+
| QuantumWise A/S | phone: +45-29716388 |
| Nørresøgade 27A | www: www.quantumwise.com |
| DK-1370 Copenhagen, Denmark | email: mpi@quantumwise.com |
+------------------------------+-----------------------------+
More information about the NumPy-Discussion
mailing list