summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/CAPI.txt5
-rw-r--r--scipy/base/src/ufuncobject.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/CAPI.txt b/doc/CAPI.txt
index e889ddc91..cdda9394e 100644
--- a/doc/CAPI.txt
+++ b/doc/CAPI.txt
@@ -284,8 +284,9 @@ UPDATEIFCOPY : This is a special flag that is set if this array represents
a copy made because a user required certain FLAGS in
PyArray_FromAny and a copy had to be made of some
other array. The base attribute then points to the
- "misbehaved" array and will copy its contents to that
- array when deallocated.
+ "misbehaved" array. When the array with this flag
+ set is deallocated, it will copy its contents to
+ the "misbehaved" array (casting if necessary).
PyArray_UpdateFlags(obj, FLAGS) will update the obj->flags for FLAGS
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);
}
}