diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-03-28 12:16:34 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-08-16 16:39:31 -0500 |
commit | 6d7b51a4161c9b0ae23b726cab65230102a5e53e (patch) | |
tree | 4e531b11c0589f05d3af5f4b6771d8c623314f9d /numpy | |
parent | 2a8c04b60a5c51ce3e59f37af8e10a4dab8fe525 (diff) | |
download | numpy-6d7b51a4161c9b0ae23b726cab65230102a5e53e.tar.gz |
Improve comment for creating iter object from second operand
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 0188fbdaa..e90262991 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4929,9 +4929,13 @@ ufunc_at(PyUFuncObject *ufunc, PyObject *args) } } - /* - * Be sure values array is "broadcastable" - * to shape of iter->dimensions, iter->nd + /* + * Create array iter object for second operand that + * "matches" the map iter object for the first operand. + * Then we can just iterate over the first and second + * operands at the same time and not have to worry about + * picking the correct elements from each operand to apply + * the ufunc to. */ if ((iter2 = (PyArrayIterObject *)\ PyArray_BroadcastToShape((PyObject *)op2_array, |