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
NpyAuxDatac_metadata

Field Documentation

Metadata specific to the C implementation of the particular dtype. This was added for NumPy 1.7.0.
The fields dictionary for this type For statically defined descr this is always Py_None

Referenced by _is_tuple_of_integers(), _strided_to_strided_field_transfer(), get_fields_transfer_function(), PyArray_Correlate2(), and STRING_copyswapn().

kind for this type

Referenced by _is_array_descr_builtin().

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

Referenced by _array_from_buffer_3118(), _is_tuple_of_integers(), and get_fields_transfer_function().

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

Referenced by _array_from_buffer_3118(), get_decsrcref_fields_transfer_function(), and PyArray_Correlate2().

unique-character representing this type

Referenced by _array_from_buffer_3118(), and 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.

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