title: How to flatten axes of a multidimensional array without making copies in NumPy?
body: <p>I am wondering if there is a way to flatten a multidimensional array (i.e., of type <code>ndarray</code>) along given axes without making copies in NumPy. For example, I have an array of 2D images and I wish to flatten each to a vector. So, one easy way to do it is <code>numpy.array([im.flatten() for im in images])</code>, but that creates copies of each. </p>