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

Function _get_bufsize_errmask

numpy/core/src/umath/extobj.c:338–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337
338NPY_NO_EXPORT int
339_get_bufsize_errmask(PyObject * extobj, const char *ufunc_name,
340 int *buffersize, int *errormask)
341{
342 /* Get the buffersize and errormask */
343 if (extobj == NULL) {
344 extobj = get_global_ext_obj();
345 if (extobj == NULL && PyErr_Occurred()) {
346 return -1;
347 }
348 }
349 if (_extract_pyvals(extobj, ufunc_name,
350 buffersize, errormask, NULL) < 0) {
351 return -1;
352 }
353
354 return 0;
355}

Callers 8

PyUFunc_ReduceFunction · 0.85
PyUFunc_AccumulateFunction · 0.85
PyUFunc_ReduceatFunction · 0.85
trivial_at_loopFunction · 0.85
ufunc_at__fast_iterFunction · 0.85
ufunc_at__slow_iterFunction · 0.85

Calls 1

_extract_pyvalsFunction · 0.85

Tested by

no test coverage detected