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

Function ufunc_generic_vectorcall

numpy/core/src/umath/ufunc_object.c:5056–5066  ·  view source on GitHub ↗

* Implement vectorcallfunc which should be defined with Python 3.8+. * In principle this could be backported, but the speed gain seems moderate * since ufunc calls often do not have keyword arguments and always have * a large overhead. The only user would potentially be cython probably. */

Source from the content-addressed store, hash-verified

5054 * a large overhead. The only user would potentially be cython probably.
5055 */
5056static PyObject *
5057ufunc_generic_vectorcall(PyObject *ufunc,
5058 PyObject *const *args, size_t len_args, PyObject *kwnames)
5059{
5060 /*
5061 * Unlike METH_FASTCALL, `len_args` may have a flag to signal that
5062 * args[-1] may be (temporarily) used. So normalize it here.
5063 */
5064 return ufunc_generic_fastcall((PyUFuncObject *)ufunc,
5065 args, PyVectorcall_NARGS(len_args), kwnames, NPY_FALSE);
5066}
5067
5068
5069NPY_NO_EXPORT PyObject *

Callers

nothing calls this directly

Calls 1

ufunc_generic_fastcallFunction · 0.85

Tested by

no test coverage detected