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

Function _get_wrap_prepare_args

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

Get the arg tuple to pass in the context argument to __array_wrap__ and * __array_prepare__. * * Output arguments are only passed if at least one is non-None. */

Source from the content-addressed store, hash-verified

99 * Output arguments are only passed if at least one is non-None.
100 */
101static PyObject *
102_get_wrap_prepare_args(ufunc_full_args full_args) {
103 if (full_args.out == NULL) {
104 Py_INCREF(full_args.in);
105 return full_args.in;
106 }
107 else {
108 return PySequence_Concat(full_args.in, full_args.out);
109 }
110}
111
112/* ---------------------------------------------------------------- */
113

Callers 2

_apply_array_wrapFunction · 0.85
prepare_ufunc_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected