[Numpy-discussion] potential bug in PyArray_MoveInto and PyArray_CopyInto?

James Bergstra bergstrj at iro.umontreal.ca
Thu Jul 7 13:03:04 EDT 2011


In numpy 1.5.1,  the functions PyArray_MoveInto and PyArray_CopyInto
don't appear to treat strides correctly.

Evidence:
PyNumber_InPlaceAdd(dst, src), and modifies the correct subarray to
which dst points.

In the same context, PyArray_MoveInto(dst, src) modifies the first two
rows of the
underlying matrix instead of the first two columns. PyArray_CopyInto
does the same.

Is there something subtle going on here?

James
-- 
http://www-etud.iro.umontreal.ca/~bergstrj



More information about the NumPy-Discussion mailing list