MCPcopy Create free account
hub / github.com/pydata/numexpr / get_reduction_axis

Function get_reduction_axis

numexpr3/interpreter.cpp:93–102  ·  view source on GitHub ↗

TODO: refactor get_reduction_axis

Source from the content-addressed store, hash-verified

91
92// TODO: refactor get_reduction_axis
93static int
94get_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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…