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

Function _initialize_variable_parts

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

* Copy over parts of the ufunc structure that may need to be * changed during execution. Returns 0 on success; -1 otherwise. */

Source from the content-addressed store, hash-verified

2161 * changed during execution. Returns 0 on success; -1 otherwise.
2162 */
2163static 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
2180static int
2181PyUFunc_GeneralizedFunctionInternal(PyUFuncObject *ufunc,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected