* Copy over parts of the ufunc structure that may need to be * changed during execution. Returns 0 on success; -1 otherwise. */
| 2161 | * changed during execution. Returns 0 on success; -1 otherwise. |
| 2162 | */ |
| 2163 | static int |
| 2164 | _initialize_variable_parts(PyUFuncObject *ufunc, |
| 2165 | int op_core_num_dims[], |
| 2166 | npy_intp core_dim_sizes[], |
| 2167 | npy_uint32 core_dim_flags[]) { |
| 2168 | int i; |
| 2169 | |
| 2170 | for (i = 0; i < ufunc->nargs; i++) { |
| 2171 | op_core_num_dims[i] = ufunc->core_num_dims[i]; |
| 2172 | } |
| 2173 | for (i = 0; i < ufunc->core_num_dim_ix; i++) { |
| 2174 | core_dim_sizes[i] = ufunc->core_dim_sizes[i]; |
| 2175 | core_dim_flags[i] = ufunc->core_dim_flags[i]; |
| 2176 | } |
| 2177 | return 0; |
| 2178 | } |
| 2179 | |
| 2180 | static int |
| 2181 | PyUFunc_GeneralizedFunctionInternal(PyUFuncObject *ufunc, |
no outgoing calls
no test coverage detected