SciPy

This is documentation for an old release of NumPy (version 1.17.0). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.dtype.alignment

attribute

dtype.alignment

The required alignment (bytes) of this data-type according to the compiler.

More information is available in the C-API section of the manual.

Examples

>>>
>>> x = np.dtype('i4')
>>> x.alignment
4
>>>
>>> x = np.dtype(float)
>>> x.alignment
8

Previous topic

numpy.dtype.descr

Next topic

numpy.dtype.base