[Numpy-discussion] Using as_strided to avoid copy on repeat (with 2-dimensional array)
Stéfan van der Walt
stefan at sun.ac.za
Tue Aug 13 05:54:52 EDT 2013
On Mon, Aug 12, 2013 at 11:23 PM, Robert Kern <robert.kern at gmail.com> wrote:
>> 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.
Now, if only we supported simple fraction strides...
Stéfan
More information about the NumPy-Discussion
mailing list