numpy  2.0.0
src/multiarray/number.h File Reference

Go to the source code of this file.

Data Structures

struct  NumericOps

Functions

NPY_NO_EXPORT PyObject * array_int (PyArrayObject *v)
NPY_NO_EXPORT int PyArray_SetNumericOps (PyObject *dict)
NPY_NO_EXPORT PyObject * PyArray_GetNumericOps (void)
NPY_NO_EXPORT PyObject * PyArray_GenericBinaryFunction (PyArrayObject *m1, PyObject *m2, PyObject *op)
NPY_NO_EXPORT PyObject * PyArray_GenericUnaryFunction (PyArrayObject *m1, PyObject *op)
NPY_NO_EXPORT PyObject * PyArray_GenericReduceFunction (PyArrayObject *m1, PyObject *op, int axis, int rtype, PyArrayObject *out)
NPY_NO_EXPORT PyObject * PyArray_GenericAccumulateFunction (PyArrayObject *m1, PyObject *op, int axis, int rtype, PyArrayObject *out)

Variables

NPY_NO_EXPORT NumericOps n_ops
NPY_NO_EXPORT PyNumberMethods array_as_number

Function Documentation

If we still got an array which can hold references, stop because it could point back at 'v'.
NPY_NO_EXPORT PyObject* PyArray_GenericAccumulateFunction ( PyArrayObject m1,
PyObject *  op,
int  axis,
int  rtype,
PyArrayObject out 
)

Referenced by PyArray_Prod(), and PyArray_Sum().

NPY_NO_EXPORT PyObject* PyArray_GenericReduceFunction ( PyArrayObject m1,
PyObject *  op,
int  axis,
int  rtype,
PyArrayObject out 
)

References _get_keywords().

Referenced by PyArray_Max(), and PyArray_Mean().

NPY_NO_EXPORT PyObject* PyArray_GenericUnaryFunction ( PyArrayObject m1,
PyObject *  op 
)
NPY_NO_EXPORT PyObject* PyArray_GetNumericOps ( void  )
Get dictionary showing number functions that all arrays will use
NPY_NO_EXPORT int PyArray_SetNumericOps ( PyObject *  dict)
Set internal structure with number functions that all arrays will use

Variable Documentation

NPY_NO_EXPORT PyNumberMethods array_as_number