numpy 2.0.0
_PyArray_Descr Struct Reference

#include <ndarraytypes.h>

Data Fields

PyObject_HEAD PyTypeObject * typeobj
char kind
char type
char byteorder
char flags
int type_num
int elsize
int alignment
struct _arr_descrsubarray
PyObject * fields
PyObject * names
PyArray_ArrFuncsf
PyObject * metadata

Field Documentation

alignment needed for this type

Referenced by _is_array_descr_builtin(), _zerofill(), and scalar_value().

The fields dictionary for this type For statically defined descr this is always Py_None

Referenced by _convert_from_commastring(), _strided_to_strided_field_transfer(), get_fields_transfer_function(), PyArray_ConvertClipmodeSequence(), and STRING_copyswapn().

flags describing data type

Referenced by _convert_from_commastring(), and _is_array_descr_builtin().

Metadata about this dtype
An ordered tuple of field names or NULL if no fields are defined

Referenced by _convert_from_commastring(), and get_fields_transfer_function().

Non-NULL if this type is is an array (C-contiguous) of some other type

Referenced by get_decsrcref_fields_transfer_function(), and PyArray_ConvertClipmodeSequence().

unique-character representing this type

Referenced by ufunc_masker_data_clone().

PyObject_HEAD PyTypeObject* _PyArray_Descr::typeobj
the type object representing an instance of this type -- should not be two type_numbers with the same type object.

Referenced by _use_default_type().


The documentation for this struct was generated from the following file: