[Numpy-discussion] ndarray.resize that preserve view content ?

Antoine Dechaume boolegue@gmail....
Wed Aug 4 09:29:33 CDT 2010


Hi,

given A=empty([10,10]), I would like to keep A[:5,:5] as a contiguous memory
segment.

How to do it efficiently?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100804/47d96c47/attachment.html 


More information about the NumPy-Discussion mailing list