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

NPY_NO_EXPORT PyObject* array_int ( PyArrayObject v)

If we still got an array which can hold references, stop because it could point back at 'v'.

References PyArrayObject::data, PyArrayObject::descr, _PyArray_Descr::f, PyArray_ArrFuncs::getitem, Py_TYPE, PyArray_Check, PyArray_DESCR, PyArray_SIZE, and PyDataType_REFCHK.

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_GenericBinaryFunction ( PyArrayObject m1,
PyObject *  m2,
PyObject *  op 
)
NPY_NO_EXPORT PyObject* PyArray_GenericReduceFunction ( PyArrayObject m1,
PyObject *  op,
int  axis,
int  rtype,
PyArrayObject out 
)

References _get_keywords().

Referenced by _strings_richcompare().

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
NPY_NO_EXPORT NumericOps n_ops