numpy 2.0.0
|
#include <Python.h>
#include "structmember.h"
#include "numpy/arrayobject.h"
#include "npy_config.h"
#include "numpy/npy_3kcompat.h"
#include "common.h"
#include "number.h"
#include "calculation.h"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | _MULTIARRAYMODULE |
#define | NPY_NO_PREFIX |
#define | _check_axis PyArray_CheckAxis |
#define | PyAO PyArrayObject |
Functions | |
static double | power_of_ten (int n) |
NPY_NO_EXPORT PyObject * | PyArray_ArgMax (PyArrayObject *op, int axis, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_ArgMin (PyArrayObject *ap, int axis, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Max (PyArrayObject *ap, int axis, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Min (PyArrayObject *ap, int axis, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Ptp (PyArrayObject *ap, int axis, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Std (PyArrayObject *self, int axis, int rtype, PyArrayObject *out, int variance) |
NPY_NO_EXPORT PyObject * | __New_PyArray_Std (PyArrayObject *self, int axis, int rtype, PyArrayObject *out, int variance, int num) |
NPY_NO_EXPORT PyObject * | PyArray_Sum (PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Prod (PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_CumSum (PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_CumProd (PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Round (PyArrayObject *a, int decimals, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Mean (PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Any (PyArrayObject *self, int axis, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_All (PyArrayObject *self, int axis, PyArrayObject *out) |
static PyObject * | _GenericBinaryOutFunction (PyArrayObject *m1, PyObject *m2, PyArrayObject *out, PyObject *op) |
static PyObject * | _slow_array_clip (PyArrayObject *self, PyObject *min, PyObject *max, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Clip (PyArrayObject *self, PyObject *min, PyObject *max, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Conjugate (PyArrayObject *self, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_Trace (PyArrayObject *self, int offset, int axis1, int axis2, int rtype, PyArrayObject *out) |
#define _check_axis PyArray_CheckAxis |
#define _MULTIARRAYMODULE |
#define NPY_NO_PREFIX |
#define PY_SSIZE_T_CLEAN |
#define PyAO PyArrayObject |
Referenced by PyArray_Prod(), and PyArray_Sum().
NPY_NO_EXPORT PyObject* __New_PyArray_Std | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out, | ||
int | variance, | ||
int | num | ||
) |
static PyObject* _GenericBinaryOutFunction | ( | PyArrayObject * | m1, |
PyObject * | m2, | ||
PyArrayObject * | out, | ||
PyObject * | op | ||
) | [static] |
Referenced by PyArray_Any().
static PyObject* _slow_array_clip | ( | PyArrayObject * | self, |
PyObject * | min, | ||
PyObject * | max, | ||
PyArrayObject * | out | ||
) | [static] |
Referenced by PyArray_Clip().
static double power_of_ten | ( | int | n | ) | [static] |
NPY_NO_EXPORT PyObject* PyArray_All | ( | PyArrayObject * | self, |
int | axis, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Any | ( | PyArrayObject * | self, |
int | axis, | ||
PyArrayObject * | out | ||
) |
References _GenericBinaryOutFunction(), NumericOps::maximum, NumericOps::minimum, and n_ops.
Referenced by array_sum().
NPY_NO_EXPORT PyObject* PyArray_ArgMax | ( | PyArrayObject * | op, |
int | axis, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_ArgMin | ( | PyArrayObject * | ap, |
int | axis, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Clip | ( | PyArrayObject * | self, |
PyObject * | min, | ||
PyObject * | max, | ||
PyArrayObject * | out | ||
) |
References _slow_array_clip(), _PyArray_Descr::f, PyArray_ArrFuncs::fastclip, and PyArray_PromoteTypes().
NPY_NO_EXPORT PyObject* PyArray_Conjugate | ( | PyArrayObject * | self, |
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_CumProd | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_CumSum | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Max | ( | PyArrayObject * | ap, |
int | axis, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Mean | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Min | ( | PyArrayObject * | ap, |
int | axis, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Prod | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out | ||
) |
References _check_axis, NumericOps::multiply, n_ops, PyAO, and PyArray_GenericAccumulateFunction().
NPY_NO_EXPORT PyObject* PyArray_Ptp | ( | PyArrayObject * | ap, |
int | axis, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject * PyArray_Round | ( | PyArrayObject * | a, |
int | decimals, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Std | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out, | ||
int | variance | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Sum | ( | PyArrayObject * | self, |
int | axis, | ||
int | rtype, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Trace | ( | PyArrayObject * | self, |
int | offset, | ||
int | axis1, | ||
int | axis2, | ||
int | rtype, | ||
PyArrayObject * | out | ||
) |