diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-10-10 16:13:29 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-10-10 16:13:29 +0000 |
commit | 57971b8645a3a22872b791c491de2f313ca64f9e (patch) | |
tree | 4b5def4c0ac2130d78da2c591e677e42cc943596 | |
parent | e8fc406e186112d6713102f2226e7be0e7ac1fbe (diff) | |
download | numpy-57971b8645a3a22872b791c491de2f313ca64f9e.tar.gz |
Print statements for 64-bit debug.
-rw-r--r-- | doc/CAPI.txt | 5 | ||||
-rw-r--r-- | scipy/base/src/ufuncobject.c | 7 |
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); } } |