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

Function call_array_function

numpy/core/src/multiarray/arrayfunction_override.c:192–204  ·  view source on GitHub ↗

* Calls __array_function__ on the provided argument, with a fast-path for * ndarray. */

Source from the content-addressed store, hash-verified

190 * ndarray.
191 */
192static PyObject *
193call_array_function(PyObject* argument, PyObject* method,
194 PyObject* public_api, PyObject* types,
195 PyObject* args, PyObject* kwargs)
196{
197 if (is_default_array_function(method)) {
198 return array_function_method_impl(public_api, types, args, kwargs);
199 }
200 else {
201 return PyObject_CallFunctionObjArgs(
202 method, argument, public_api, types, args, kwargs, NULL);
203 }
204}
205
206
207

Calls 2

Tested by

no test coverage detected