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

Function _has_output_coredims

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

* Check whether any of the outputs of a gufunc has core dimensions. */

Source from the content-addressed store, hash-verified

1739 * Check whether any of the outputs of a gufunc has core dimensions.
1740 */
1741static int
1742_has_output_coredims(PyUFuncObject *ufunc) {
1743 int i;
1744 for (i = ufunc->nin; i < ufunc->nin + ufunc->nout; ++i) {
1745 if (ufunc->core_num_dims[i] > 0) {
1746 return 1;
1747 }
1748 }
1749 return 0;
1750}
1751
1752/*
1753 * Check whether the gufunc can be used with axis, i.e., that there is only

Callers 1

_parse_axes_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected