Is there in numpy a function that does:

    np.concatenate([a_[np.newaxis] for a_ in a])

?

ie: add a dimension in front and stack along this dimension, just like 

    np.array(a)

would do, but more efficient.

This is something that do all the time. Am I the only one?

Cheers,

Gaƫl
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to