1
#ifndef _NPY_CALCULATION_H_
2
#define _NPY_CALCULATION_H_
4
NPY_NO_EXPORT PyObject*
5
PyArray_ArgMax(PyArrayObject* self, int axis, PyArrayObject *out);
7
NPY_NO_EXPORT PyObject*
8
PyArray_ArgMin(PyArrayObject* self, int axis, PyArrayObject *out);
10
NPY_NO_EXPORT PyObject*
11
PyArray_Max(PyArrayObject* self, int axis, PyArrayObject* out);
13
NPY_NO_EXPORT PyObject*
14
PyArray_Min(PyArrayObject* self, int axis, PyArrayObject* out);
16
NPY_NO_EXPORT PyObject*
17
PyArray_Ptp(PyArrayObject* self, int axis, PyArrayObject* out);
19
NPY_NO_EXPORT PyObject*
20
PyArray_Mean(PyArrayObject* self, int axis, int rtype, PyArrayObject* out);
22
NPY_NO_EXPORT PyObject *
23
PyArray_Round(PyArrayObject *a, int decimals, PyArrayObject *out);
25
NPY_NO_EXPORT PyObject*
26
PyArray_Trace(PyArrayObject* self, int offset, int axis1, int axis2,
27
int rtype, PyArrayObject* out);
29
NPY_NO_EXPORT PyObject*
30
PyArray_Clip(PyArrayObject* self, PyObject* min, PyObject* max, PyArrayObject *out);
32
NPY_NO_EXPORT PyObject*
33
PyArray_Conjugate(PyArrayObject* self, PyArrayObject* out);
35
NPY_NO_EXPORT PyObject*
36
PyArray_Round(PyArrayObject* self, int decimals, PyArrayObject* out);
38
NPY_NO_EXPORT PyObject*
39
PyArray_Std(PyArrayObject* self, int axis, int rtype, PyArrayObject* out,
42
NPY_NO_EXPORT PyObject *
43
__New_PyArray_Std(PyArrayObject *self, int axis, int rtype, PyArrayObject *out,
44
int variance, int num);
46
NPY_NO_EXPORT PyObject*
47
PyArray_Sum(PyArrayObject* self, int axis, int rtype, PyArrayObject* out);
49
NPY_NO_EXPORT PyObject*
50
PyArray_CumSum(PyArrayObject* self, int axis, int rtype, PyArrayObject* out);
52
NPY_NO_EXPORT PyObject*
53
PyArray_Prod(PyArrayObject* self, int axis, int rtype, PyArrayObject* out);
55
NPY_NO_EXPORT PyObject*
56
PyArray_CumProd(PyArrayObject* self, int axis, int rtype, PyArrayObject* out);
58
NPY_NO_EXPORT PyObject*
59
PyArray_All(PyArrayObject* self, int axis, PyArrayObject* out);
61
NPY_NO_EXPORT PyObject*
62
PyArray_Any(PyArrayObject* self, int axis, PyArrayObject* out);