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().

'>' (big), '<' (little), '|' (not-applicable), or '=' (native).

Referenced by _is_array_descr_builtin(), npyiter_apply_forced_iteration_order(), and PyArray_FromStructInterface().

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

Referenced by _convert_from_datetime(), and _field_transfer_data_copy().

flags describing data type

Referenced by _convert_from_datetime(), and _is_array_descr_builtin().

kind for this type

Referenced by _is_array_descr_builtin().

Metadata about this dtype

Referenced by arraydescr_names_set().

An ordered tuple of field names or NULL if no fields are defined

Referenced by _convert_from_datetime(), and _field_transfer_data_copy().

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

Referenced by _strided_to_strided_subarray_broadcast_withrefs().

unique-character representing this type
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: