summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-03-02 03:12:41 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2013-03-03 12:55:35 +0100
commitaa4d003598e66ff7c8392544d56ecdcc76493133 (patch)
treecb61f6bfcd618ccefc25bd0a1c9ae18c33fb593f /numpy
parent20f44efee8eda236b222180f3c0964eb2ca6b5b2 (diff)
downloadnumpy-aa4d003598e66ff7c8392544d56ecdcc76493133.tar.gz
MAINT: Remove 0-d iterator special case from ufunc_object.c
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/ufunc_object.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 3c3fbf636..9c499d322 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -1976,18 +1976,6 @@ PyUFunc_GeneralizedFunction(PyUFuncObject *ufunc,
NPY_ITER_NO_BROADCAST;
}
- /*
- * If there are no iteration dimensions, create a fake one
- * so that the scalar edge case works right.
- */
- if (iter_ndim == 0) {
- iter_ndim = 1;
- iter_shape[0] = 1;
- for (i = 0; i < nop; ++i) {
- op_axes[i][0] = -1;
- }
- }
-
/* Create the iterator */
iter = NpyIter_AdvancedNew(nop, op, NPY_ITER_MULTI_INDEX|
NPY_ITER_REFS_OK|