numpy  2.0.0
PyArrayInterface Struct Reference

#include <ndarraytypes.h>

Data Fields

int two
int nd
char typekind
int itemsize
int flags
npy_intpshape
npy_intpstrides
void * data
PyObject * descr

Detailed Description

System Message: SEVERE/4 (<string>, line 1)
Missing matching underline for section title overline.

 This is the form of the struct that's returned pointed by the
 PyCObject attribute of an array __array_struct__. See

<blockquote> http://docs.scipy.org/doc/numpy/reference/arrays.interface.html for the full documentation.</blockquote>

System Message: WARNING/2 (<string>, line 6) Block quote ends without a blank line; unexpected unindent.

System Message: ERROR/3 (<string>, line 6) Document may not end with a transition.

Field Documentation

A pointer to the first element of the array
A list of fields or NULL (ignored if flags does not have ARR_HAS_DESCR flag set)

Referenced by array_struct_get().

how should be data interpreted. Valid flags are CONTIGUOUS (1), F_CONTIGUOUS (2), ALIGNED (0x100), NOTSWAPPED (0x200), and WRITEABLE (0x400). ARR_HAS_DESCR (0x800) states that arrdescr field is present in structure
size of each element
number of dimensions
A length-nd array of shape information
A length-nd array of stride information
contains the integer 2 as a sanity check
kind in array --- character code of typestr

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