[Matrix-SIG] extending an array

Konrad Hinsen hinsen@cnrs-orleans.fr
Thu, 6 Jan 2000 14:58:53 +0100

> Is it possible to extend an array "in place"?


> Reshape does not do that but resize creates always a copy.
> Is there something that behaves like a C realloc?

Even C realloc doesn't guarantee an extension in place; it might as well
allocate a new memory block and copy the data. I suppose one could somehow
provide access to the realloc operation in NumPy, but I am not sure that
it makes much sense.

Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais