Freddy Rietdijk
2015-06-19 08:06:36 UTC
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
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