copy a numpy array

gsal salgerman at gmail.com
Tue Jan 8 13:11:08 EST 2008


I am new to python and everything related to it, and it so happens
that I just went through the numpy tutorial last night, it is in

http://www.scipy.org/Tentative_NumPy_Tutorial

and the answer to your question is in section 3.7

Basically, if you want to make a (deep) copy of it:

destarray = srcarray.copy()

gsal



More information about the Python-list mailing list