numpy 2.0.0
PyUFuncObject Struct Reference

#include <ufuncobject.h>

Data Fields

PyObject_HEAD int nin
PyObject_HEAD int nout
PyObject_HEAD int nargs
int identity
PyUFuncGenericFunctionfunctions
void ** data
int ntypes
int check_return
char * name
char * types
char * doc
void * ptr
PyObject * obj
PyObject * userloops
int core_enabled
int core_num_dim_ix
int * core_num_dims
int * core_dim_ixs
int * core_offsets
char * core_signature

Field Documentation

Does not appear to be used
dimension indices in a flatted form; indices are in the range of [0,core_num_dim_ix)
generalized ufunc parameters
0 for scalar ufunc; 1 for generalized ufunc
number of distinct dimension names in signature
dimension indices of input/output argument k are stored in core_dim_ixs[core_offsets[k]..core_offsets[k]+core_num_dims[k]-1]
numbers of core dimensions of each argument
positions of 1st core dimensions of each argument in core_dim_ixs
signature string for printing purpose
Array of funcdata that gets passed into the functions
Documentation string
Array of one-dimensional core loops
Identity for reduction, either PyUFunc_One or PyUFunc_Zero
The name of the ufunc
PyObject_HEAD int PyUFuncObject::nargs
PyObject_HEAD int PyUFuncObject::nin
nin: Number of inputs nout: Number of outputs nargs: Always nin + nout (Why is it stored?)
PyObject_HEAD int PyUFuncObject::nout
The number of elements in 'functions' and 'data'
PyObject* PyUFuncObject::obj
Array of type numbers, of size ('nargs' * 'ntypes')

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