forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arraytypes.h.src
69 lines (55 loc) · 2.02 KB
/
arraytypes.h.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_
#include "common.h"
NPY_NO_EXPORT int
set_typeinfo(PyObject *dict);
/* needed for blasfuncs */
NPY_NO_EXPORT void
FLOAT_dot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
NPY_NO_EXPORT void
CFLOAT_dot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
NPY_NO_EXPORT void
DOUBLE_dot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
NPY_NO_EXPORT void
CDOUBLE_dot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
/* for _pyarray_correlate */
NPY_NO_EXPORT int
small_correlate(const char * d_, npy_intp dstride,
npy_intp nd, enum NPY_TYPES dtype,
const char * k_, npy_intp kstride,
npy_intp nk, enum NPY_TYPES ktype,
char * out_, npy_intp ostride);
/**begin repeat
* #TYPE = BYTE, UBYTE, SHORT, USHORT, INT, UINT,
* LONG, ULONG, LONGLONG, ULONGLONG,
* HALF, FLOAT, DOUBLE, LONGDOUBLE,
* CFLOAT, CDOUBLE, CLONGDOUBLE#
*/
/*
* The setitem functions are currently directly used in certain branches
* of the scalar-math code. (Yes, this would be nice to refactor...)
*/
NPY_NO_EXPORT int
@TYPE@_setitem(PyObject *obj, void *data_ptr, void *arr);
/**end repeat**/
#ifndef NPY_DISABLE_OPTIMIZATION
#include "argfunc.dispatch.h"
#endif
/**begin repeat
* #TYPE = BYTE, UBYTE, SHORT, USHORT, INT, UINT,
* LONG, ULONG, LONGLONG, ULONGLONG,
* FLOAT, DOUBLE, LONGDOUBLE#
* #type = byte, ubyte, short, ushort, int, uint,
* long, ulong, longlong, ulonglong,
* float, double, longdouble#
*/
/**begin repeat1
* #func = argmax, argmin#
*/
NPY_CPU_DISPATCH_DECLARE(NPY_NO_EXPORT int @TYPE@_@func@,
(npy_@type@ *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *aip))
/**end repeat1**/
/**end repeat**/
NPY_CPU_DISPATCH_DECLARE(NPY_NO_EXPORT int BOOL_argmax,
(npy_bool *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *aip))
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_ */