diff options
| author | Tim Hochberg <tim_hochberg@local> | 2006-06-19 21:14:39 +0000 |
|---|---|---|
| committer | Tim Hochberg <tim_hochberg@local> | 2006-06-19 21:14:39 +0000 |
| commit | 1dc30f8d0bcc069afe3a2eadcc9d7f7121e64a94 (patch) | |
| tree | 46a89016ea5f4233e306b86e31e3156c900a84c4 /numpy/core/src/arrayobject.c | |
| parent | 4eca92870b244259efee5585c6a856dd1e35ec87 (diff) | |
| download | numpy-1dc30f8d0bcc069afe3a2eadcc9d7f7121e64a94.tar.gz | |
**= Was being invoked twice when it should have gone through the fast path. Fixed and added a test that should capture it. Results was that that [0, 1, 2] **= 2 => [0, 1, 16].
Diffstat (limited to 'numpy/core/src/arrayobject.c')
| -rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 360694a94..7053eb81d 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -2999,7 +2999,7 @@ fast_scalar_power(PyArrayObject *a1, PyObject *o2, int inplace) { return NULL; } if (inplace) { - PyArray_GenericInplaceUnaryFunction(a1, + return PyArray_GenericInplaceUnaryFunction(a1, fastop); } else { return PyArray_GenericUnaryFunction(a1, |
