[NumPy-Tickets] [NumPy] #1437: Copy a complex array into a slice of a real array takes the real part.
NumPy Trac
numpy-tickets@scipy....
Sun Mar 21 16:06:24 CDT 2010
#1437: Copy a complex array into a slice of a real array takes the real part.
----------------------------+-----------------------------------------------
Reporter: SevenThunders | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Other | Version:
Resolution: invalid | Keywords:
----------------------------+-----------------------------------------------
Changes (by charris):
* status: new => closed
* resolution: => invalid
Comment:
You can't store a complex into the space reserved for a real, it won't
fit. Matlab makes a new array in this situation, Numpy does it "inplace".
It's not a bug, it is a design decision. That said, the next version of
Numpy will issue a warning when this happens because it is almost always a
programming error rather than intended behavior. Even experienced Numpy
users get caught by it on occasion.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1437#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list