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_resolution_function
PyUFunc_TypeResolutionMaskedFunctype_resolution_masked_function

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

Referenced by object_ufunc_type_resolution(), and PyUFunc_MultiplicationTypeResolution().

Documentation string
Identity for reduction, either PyUFunc_One or PyUFunc_Zero
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_resolution(), PyUFunc_DefaultTypeResolution(), and PyUFunc_ValidateCasting().

The number of elements in 'functions' and 'data'

Referenced by PyUFunc_MultiplicationTypeResolution().

A function which resolves the types and returns an inner loop. This is used by the regular ufunc, the reduction operations have a different set of rules.
A function which resolves the types and returns an inner loop. This is used by the regular ufunc when it requires using a mask to select which elements to compute.
Array of type numbers, of size ('nargs' * 'ntypes')

Referenced by PyUFunc_MultiplicationTypeResolution().


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