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

Robert Kern robert.kern at gmail.com
Wed Aug 4 11:01:16 EDT 2010


On Wed, Aug 4, 2010 at 09:29, Antoine Dechaume <boolegue at gmail.com> wrote:
> Hi,
>
> given A=empty([10,10]), I would like to keep A[:5,:5] as a contiguous memory
> segment.
>
> How to do it efficiently?

I'm not sure I understand what you want. Your Subject line and the
body of your email conflict with each other. Can you try to explain
what you want in other words?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list