numpy  2.0.0
tagPyArrayObject_fields 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 has been recommended to use the inline functions defined below (PyArray_DATA and friends) to access fields here for a number of releases. Direct access to the members themselves is deprecated. To ensure that your code does not use deprecated access, #define NPY_NO_DEPRECATED_API NPY_1_7_VERSION (or NPY_1_8_VERSION or higher as required).
This struct will be moved to a private header in a future release

Field Documentation

This object is decref'd upon deletion of array. Except in the case of UPDATEIFCOPY which has special handling.
For views it points to the original array, collapsed so no chains of views occur.
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
PyObject_HEAD char* tagPyArrayObject_fields::data
Pointer to the raw data buffer
Pointer to type structure
The size in each dimension, also called 'shape'
Flags describing array -- see below
The number of dimensions, also called 'ndim'
Number of bytes to jump to get to the next element in each dimension
For weak references

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