* Check whether any of the outputs of a gufunc has core dimensions. */
| 1739 | * Check whether any of the outputs of a gufunc has core dimensions. |
| 1740 | */ |
| 1741 | static 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 |