For example, if we have a numpy array A , and we want to get a numpy array B with the same elements.
What is the difference between the following (see below) methods? When is extra memory allocated and when not?
B = AB[:] = A (same as B[:]=A[:] ?)numpy.copy(B, A)
python arrays numpy
mrgloom Oct 30 '13 at 7:44 2013-10-30 07:44
source share