|
numpy 2.0.0
|
#include "Python.h"#include "npy_config.h"#include "numpy/noprefix.h"#include "numpy/ufuncobject.h"#include "abstract.h"#include "numpy/npy_math.h"#include "funcs.inc"#include "loops.h"#include "ufunc_object.h"#include "ufunc_type_resolution.h"#include "__umath_generated.c"#include "__ufunc_api.c"#include <stdio.h>Defines | |
| #define | _UMATHMODULE |
| #define | NPY_NO_DEPRECATED_API |
| #define | LDEXP_LONG(typ) typ##_ldexp |
| #define | RETVAL |
| #define | ADDCONST(str) PyModule_AddIntConstant(m, #str, UFUNC_##str) |
| #define | ADDSCONST(str) PyModule_AddStringConstant(m, "UFUNC_" #str, UFUNC_##str) |
Functions | |
| static int | object_ufunc_type_resolution (PyUFuncObject *ufunc, NPY_CASTING casting, PyArrayObject **operands, PyObject *type_tup, PyArray_Descr **out_dtypes, PyUFuncGenericFunction *out_innerloop, void **out_innerloopdata) |
| static PyObject * | ufunc_frompyfunc (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *NPY_UNUSED(kwds)) |
| static void | InitOtherOperators (PyObject *dictionary) |
| PyMODINIT_FUNC | initumath (void) |
Variables | |
| static PyUFuncGenericFunction | pyfunc_functions [] = {PyUFunc_On_Om} |
| static PyUFuncGenericFunction | frexp_functions [] |
| static void * | blank3_data [] = { (void *)NULL, (void *)NULL, (void *)NULL} |
| static void * | blank6_data [] |
| static char | frexp_signatures [] |
| static PyUFuncGenericFunction | ldexp_functions [] |
| static char | ldexp_signatures [] |
| static struct PyMethodDef | methods [] |
| #define _UMATHMODULE |
| #define ADDCONST | ( | str | ) | PyModule_AddIntConstant(m, #str, UFUNC_##str) |
| #define ADDSCONST | ( | str | ) | PyModule_AddStringConstant(m, "UFUNC_" #str, UFUNC_##str) |
| #define LDEXP_LONG | ( | typ | ) | typ##_ldexp |
| #define NPY_NO_DEPRECATED_API |
| #define RETVAL |
| static void InitOtherOperators | ( | PyObject * | dictionary | ) | [static] |
| PyMODINIT_FUNC initumath | ( | void | ) |
| static int object_ufunc_type_resolution | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes, | ||
| PyUFuncGenericFunction * | out_innerloop, | ||
| void ** | out_innerloopdata | ||
| ) | [static] |
References _tagPyUFuncObject::data, _tagPyUFuncObject::functions, _tagPyUFuncObject::nin, _tagPyUFuncObject::nout, NPY_OBJECT, and PyArray_DescrFromType().
Referenced by ufunc_frompyfunc().
| static PyObject* ufunc_frompyfunc | ( | PyObject * | NPY_UNUSEDdummy, |
| PyObject * | args, | ||
| PyObject * | NPY_UNUSEDkwds | ||
| ) | [static] |
References PyUFunc_PyFuncData::callable, fname, function(), PyUFunc_PyFuncData::nin, PyUFunc_PyFuncData::nout, object_ufunc_type_resolution(), PyArray_malloc, PyArray_OBJECT, pyfunc_functions, PyUFunc_None, and PyUFunc_Type.
void* blank3_data[] = { (void *)NULL, (void *)NULL, (void *)NULL} [static] |
void* blank6_data[] [static] |
{ (void *)NULL, (void *)NULL, (void *)NULL,
(void *)NULL, (void *)NULL, (void *)NULL}
PyUFuncGenericFunction frexp_functions[] [static] |
{
DOUBLE_frexp
}
char frexp_signatures[] [static] |
PyUFuncGenericFunction ldexp_functions[] [static] |
{
DOUBLE_ldexp,
}
char ldexp_signatures[] [static] |
{
PyArray_DOUBLE, PyArray_INT, PyArray_DOUBLE,
PyArray_DOUBLE, PyArray_LONG, PyArray_DOUBLE
}
struct PyMethodDef methods[] [static] |
{
{"frompyfunc", (PyCFunction) ufunc_frompyfunc,
METH_VARARGS | METH_KEYWORDS, NULL},
{"seterrobj", (PyCFunction) ufunc_seterr,
METH_VARARGS, NULL},
{"geterrobj", (PyCFunction) ufunc_geterr,
METH_VARARGS, NULL},
{NULL, NULL, 0, NULL}
}
PyUFuncGenericFunction pyfunc_functions[] = {PyUFunc_On_Om} [static] |