summaryrefslogtreecommitdiff
path: root/scipy/base/src/ufuncobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/src/ufuncobject.c')
-rw-r--r--scipy/base/src/ufuncobject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/scipy/base/src/ufuncobject.c b/scipy/base/src/ufuncobject.c
index bc15996aa..85046e76d 100644
--- a/scipy/base/src/ufuncobject.c
+++ b/scipy/base/src/ufuncobject.c
@@ -228,8 +228,13 @@ PyUFunc_g_g(char **args, intp *dimensions, intp *steps, void *func)
intp n=dimensions[0];
char *ip1=args[0], *op=args[1];
for(i=0; i<n; i++, ip1+=steps[0], op+=steps[1]) {
- *(longdouble *)op = ((LongdoubleUnaryFunc *)func)\
+ fprintf(stderr, "expl = %p, sqrtl = %p\n", expl, sqrtl);
+ fprintf(stderr, "Called %p with %f: ",
+ func, (double) *(longdouble *)ip1);
+ *(longdouble *)op = ((LongdoubleUnaryFunc *)func) \
(*(longdouble *)ip1);
+ fprintf(stderr, "Answer was %f.\n",
+ (double) *(longdouble *)op);
}
}