summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-31 21:55:21 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-31 21:55:21 +0000
commitb3eb6e239bc365106824fe69eed76408e43274b5 (patch)
treede8606afd023f5b6d9750737f5708a41d8458c09
parente9d3752b841f9593134df464a3791aa1731ca943 (diff)
downloadnumpy-b3eb6e239bc365106824fe69eed76408e43274b5.tar.gz
Fix prodi when intput and output are the same. This fixes a problem with arcsin
-rw-r--r--numpy/core/src/umathmodule.c.src7
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index 059538981..a8a751a21 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -710,9 +710,10 @@ nc_pow@c@(c@typ@ *a, c@typ@ *b, c@typ@ *r)
static void
nc_prodi@c@(c@typ@ *x, c@typ@ *r)
{
- r->real = -x->imag;
- r->imag = x->real;
- return;
+ @typ@ xr = x->real;
+ r->real = -x->imag;
+ r->imag = xr;
+ return;
}