On Mon, Aug 12, 2013 at 10:01 PM, Nicolas Rougier <[email protected]> wrote: > > > Hi, > > I have a (n,2) shaped array representing points and I would like to double each point as in: > > A = np.arange(10*2).reshape(10,2) > B = np.repeat( A, 2, axis=0 ) > > Is it possible to do the same using 'as_strided' to avoid copy (and still get the same output shape for B) ?
No, this would not be uniformly strided in the 0 axis. -- Robert Kern
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
