numpy 2.0.0
PyArrayObject Struct Reference

#include <ndarraytypes.h>

Data Fields

PyObject_HEAD char * data
int nd
npy_intpdimensions
npy_intpstrides
PyObject * base
PyArray_Descrdescr
int flags
PyObject * weakreflist

Detailed Description

The main array object structure. It is recommended to use the macros defined below (PyArray_DATA and friends) access fields here, instead of the members themselves.

Field Documentation

This object should be decref'd upon deletion of array
For views it points to the original array
For creation from buffer object it points to an object that shold be decref'd on deletion
For UPDATEIFCOPY flag this is an array to-be-updated upon deletion of this one

Referenced by PyArray_FromAny(), and PyArray_TakeFrom().

Flags describing array -- see below

Referenced by PyArray_FromAny(), PyArray_ResultType(), and PyArray_UpdateFlags().

bytes to jump to get to the next element in each dimension

Referenced by PyArray_AsCArray(), and PyArray_FromAny().

For weakreferences

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