TODO: refactor get_reduction_axis
| 91 | |
| 92 | // TODO: refactor get_reduction_axis |
| 93 | static int |
| 94 | get_reduction_axis(NumExprObject* self) { |
| 95 | |
| 96 | // Py_ssize_t end = PyBytes_Size(program); |
| 97 | // int axis = ((unsigned char *)PyBytes_AS_STRING(program))[end-1]; |
| 98 | // if (axis != 255 && axis >= NPY_MAXDIMS) |
| 99 | // axis = NPY_MAXDIMS - axis; |
| 100 | // return axis; |
| 101 | return -1; |
| 102 | } |
| 103 | |
| 104 | // This is the equivalent of prepareThreads but for serial mode, where the original |
| 105 | // self and iter aren't copied. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…