diff options
author | David Cournapeau <cournape@gmail.com> | 2009-08-07 13:22:51 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-08-07 13:22:51 +0000 |
commit | 61a88ebe58f740704d6294f289c10ff104c6832a (patch) | |
tree | 450bfde360e815c000941bdb0a24e0469fc609cd | |
parent | d4001cfbfd953fd78e25df6ab32db845df3a90d8 (diff) | |
download | numpy-61a88ebe58f740704d6294f289c10ff104c6832a.tar.gz |
Remove debug/profiling stuff in neighborhood iterators tests.
-rw-r--r-- | numpy/core/src/multiarray/multiarray_tests.c.src | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/numpy/core/src/multiarray/multiarray_tests.c.src b/numpy/core/src/multiarray/multiarray_tests.c.src index 28f3f1b86..2c4f99207 100644 --- a/numpy/core/src/multiarray/multiarray_tests.c.src +++ b/numpy/core/src/multiarray/multiarray_tests.c.src @@ -200,11 +200,11 @@ clean_ax: return NULL; } -#include "cycle.h" +// #include "cycle.h" -ticks T0, T1; -double RES; -double _MAX; +// ticks T0, T1; +// double RES; +// double _MAX; static int copy_double_double(PyArrayNeighborhoodIterObject *itx, @@ -213,14 +213,14 @@ copy_double_double(PyArrayNeighborhoodIterObject *itx, PyObject **out) { npy_intp i, j, k; - register double *ptr; + double *ptr; npy_intp odims[NPY_MAXDIMS]; PyArrayObject *aout; /* For each point in itx, copy the current neighborhood into an array which * is appended at the output list */ PyArrayNeighborhoodIter_Reset(itx); - _MAX = 1e100; + // _MAX = 1e100; for(i = 0; i < itx->size; ++i) { for(j = 0; j < itx->ao->nd; ++j) { odims[j] = bounds[2 * j + 1] - bounds[2 * j] + 1; @@ -233,24 +233,24 @@ copy_double_double(PyArrayNeighborhoodIterObject *itx, ptr = (double*)aout->data; PyArrayNeighborhoodIter_Reset(niterx); - T0 = getticks(); + // T0 = getticks(); for(j = 0; j < niterx->size; ++j) { *ptr = *((double*)niterx->dataptr); ptr += 1; PyArrayNeighborhoodIter_Next(niterx); } - T1 = getticks(); - RES = elapsed(T1, T0); - if (RES < _MAX) { - _MAX = RES; - } + // T1 = getticks(); + // RES = elapsed(T1, T0); + // if (RES < _MAX) { + // _MAX = RES; + // } Py_INCREF(aout); PyList_Append(*out, (PyObject*)aout); Py_DECREF(aout); PyArrayNeighborhoodIter_Next(itx); } - printf("%f - %f\n", _MAX, _MAX / niterx->size); + // printf("%f - %f\n", _MAX, _MAX / niterx->size); return 0; } |