[NumPy-Tickets] [NumPy] #2244: dtype(..., align=True) does not align doubles correctly
NumPy Trac
numpy-tickets@scipy....
Wed Nov 7 15:11:50 CST 2012
#2244: dtype(..., align=True) does not align doubles correctly
--------------------------+-------------------------------------------------
Reporter: tim-mitchell | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.1
Keywords: |
--------------------------+-------------------------------------------------
given
dtype = numpy.dtype([('id', numpy.int32), ('location', numpy.float64, 3)],
align=True)
we get
dtype.descr --> [('id', '<i4'), ('location', '<f8', (3,))]
dtype.itemsize = 28
However doubles are 8-byte aligned by the VC2008 compiler and the sizeof
the corresponding struct is 32.
The description should be
[('id', '<i4'), ("", '|V4'), ('location', '<f8', (3,))]
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2244>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list