[Numpy-discussion] Flag for np.tile to use as_strided to reduce memory

Freddy Rietdijk freddyrietdijk at fridh.nl
Fri Jun 19 04:06:36 EDT 2015


Hi,

Having read that it is possible to basically 'copy' elements along an axis
without actually copying the values by making use of the strides, I wonder
whether it is possible to add this as an option to np.tile.

It would be easier than having to use as_strided or broadcast_arrays to
repeat data without actually replicating it.

http://stackoverflow.com/questions/23695851/python-repeating-numpy-array-without-replicating-data
https://scipy-lectures.github.io/advanced/advanced_numpy/#example-fake-dimensions-with-strides

Frederik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150619/1d3c1644/attachment.html>


More information about the NumPy-Discussion mailing list