numpy  2.0.0
_tagPyUFuncObject 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
PyUFunc_TypeResolutionFunctype_resolver
PyUFunc_LegacyInnerLoopSelectionFunclegacy_inner_loop_selector
PyUFunc_InnerLoopSelectionFuncinner_loop_selector
PyUFunc_MaskedInnerLoopSelectionFuncmasked_inner_loop_selector

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

Referenced by _has_reflected_op().

Array of funcdata that gets passed into the functions

Referenced by object_ufunc_loop_selector().

Documentation string
Array of one-dimensional core loops

Referenced by object_ufunc_loop_selector().

Identity for reduction, either PyUFunc_One or PyUFunc_Zero
A function which returns an inner loop for the new mechanism in NumPy 1.7 and later. If provided, this is used, otherwise if NULL the legacy_inner_loop_selector is used instead.
A function which returns an inner loop written for NumPy 1.6 and earlier ufuncs. This is for backwards compatibility, and may be NULL if inner_loop_selector is specified.
A function which returns a masked inner loop for the ufunc.
PyObject_HEAD int _tagPyUFuncObject::nargs
PyObject_HEAD int _tagPyUFuncObject::nin
nin: Number of inputs nout: Number of outputs nargs: Always nin + nout (Why is it stored?)

Referenced by object_ufunc_type_resolver(), PyUFunc_DefaultTypeResolver(), PyUFunc_ValidateCasting(), and ufunc_seterr().

The number of elements in 'functions' and 'data'
A function which resolves the types and fills an array with the dtypes for the inputs and outputs.
Array of type numbers, of size ('nargs' * 'ntypes')

Referenced by PyUFunc_ReplaceLoopBySignature().


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