MCPcopy Create free account
hub / github.com/numpy/numpy / _PyArray_SetNumericOps

Function _PyArray_SetNumericOps

numpy/core/src/multiarray/number.c:78–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78NPY_NO_EXPORT int
79_PyArray_SetNumericOps(PyObject *dict)
80{
81 PyObject *temp = NULL;
82 SET(add);
83 SET(subtract);
84 SET(multiply);
85 SET(divide);
86 SET(remainder);
87 SET(divmod);
88 SET(power);
89 SET(square);
90 SET(reciprocal);
91 SET(_ones_like);
92 SET(sqrt);
93 SET(cbrt);
94 SET(negative);
95 SET(positive);
96 SET(absolute);
97 SET(invert);
98 SET(left_shift);
99 SET(right_shift);
100 SET(bitwise_and);
101 SET(bitwise_or);
102 SET(bitwise_xor);
103 SET(less);
104 SET(less_equal);
105 SET(equal);
106 SET(not_equal);
107 SET(greater);
108 SET(greater_equal);
109 SET(floor_divide);
110 SET(true_divide);
111 SET(logical_or);
112 SET(logical_and);
113 SET(floor);
114 SET(ceil);
115 SET(maximum);
116 SET(minimum);
117 SET(rint);
118 SET(conjugate);
119 SET(matmul);
120 SET(clip);
121 return 0;
122}
123
124/*NUMPY_API
125 *Set internal structure with number functions that all arrays will use

Callers 2

PyArray_SetNumericOpsFunction · 0.85
initumathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected