[Numpy-discussion] repeat an array without allocation

srean srean.list at gmail.com
Mon May 5 00:34:18 EDT 2014


Hi all,

  is there an efficient way to do the following without allocating A where

 A = np.repeat(x, [4, 2, 1, 3], axis=0)
 c = A.dot(b)    # b.shape

thanks
-- srean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140504/27c804ef/attachment.html>


More information about the NumPy-Discussion mailing list