SciPy

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

numpy.dtype.isalignedstruct

attribute

dtype.isalignedstruct

Boolean indicating whether the dtype is a struct which maintains field alignment. This flag is sticky, so when combining multiple structs together, it is preserved and produces new dtypes which are also aligned.