Numeric/Numarray equivalent to zip ?

George Sakkis gsakkis at rutgers.edu
Sat Apr 30 04:32:02 EDT 2005


What's the fastest and most elegant equivalent of zip() in
Numeric/Numarray between two equally sized 1D arrays ? That is, how to
combine two (N,)-shaped arrays to one (N,2) (or (2,N)) shaped ? I
expect the fastest and the most elegant idiom to be identical, as it is
usually the case in this excellent library, but if not, both would be
useful to know. Thanks,

George




More information about the Python-list mailing list