I often need a function to zip 2 (1D) arrays together to a 2D array - similar 
as python's zip() does. 
Found no function in numpy to do that directly without thinking a lot. Or is 
there one?
Otherwise such thing would be helpful in future numpy.

I have this in my tools:


def azip( *ll ):
    return numpy.vstack(ll).transpose()



Robert

_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to