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
npy_hash_t hash

Field Documentation

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

Referenced by _is_array_descr_builtin(), and get_nbo_string_to_datetime_transfer_function().

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(), PyArray_DescrFromTypeObject(), and STRING_copyswapn().

flags describing data type

Referenced by _is_array_descr_builtin(), and PyArray_CastScalarDirect().

Cached hash value (-1 if not yet computed). This was added for NumPy 2.0.0.
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 _is_tuple_of_integers(), and PyArray_DescrFromTypeObject().

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

Referenced by PyArray_DescrFromTypeObject().

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.

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