summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTouqir Sajed <touqir@ualberta.ca>2021-01-19 16:22:54 +0600
committerTouqir Sajed <touqir@ualberta.ca>2021-01-19 16:22:54 +0600
commit2b41cbf3e46e6d16e84f0fa800500346789dba6d (patch)
treec02213c87716d8c32f11d94e95d9e457f942818f
parent15cf37d5394e69fc1847b1efa8d5253de4890cbe (diff)
downloadnumpy-2b41cbf3e46e6d16e84f0fa800500346789dba6d.tar.gz
Removed commented out code from PyArray_CountNonzero
-rw-r--r--numpy/core/src/multiarray/item_selection.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c
index 01438e27d..373286d23 100644
--- a/numpy/core/src/multiarray/item_selection.c
+++ b/numpy/core/src/multiarray/item_selection.c
@@ -2467,25 +2467,6 @@ PyArray_CountNonzero(PyArrayObject *self)
/* Special low-overhead version specific to the boolean type */
dtype = PyArray_DESCR(self);
-
-// #if NPY_SIMD
-// if (dtype->type_num == NPY_INT16 || dtype->type_num == NPY_UINT16) {
-// return count_nonzero_int16(PyArray_NDIM(self), (npy_int16 *) PyArray_DATA(self),
-// PyArray_DIMS(self), PyArray_STRIDES(self));
-// }
-
-// if (dtype->type_num == NPY_INT32 || dtype->type_num == NPY_UINT32) {
-// return count_nonzero_int32(PyArray_NDIM(self), (npy_int32 *) PyArray_DATA(self),
-// PyArray_DIMS(self), PyArray_STRIDES(self));
-// }
-
-// if (dtype->type_num == NPY_INT64 || dtype->type_num == NPY_UINT64) {
-// return count_nonzero_int64(PyArray_NDIM(self), (npy_int64 *) PyArray_DATA(self),
-// PyArray_DIMS(self), PyArray_STRIDES(self));
-// }
-
-// #endif
-
if (dtype->type_num >= NPY_INT16 && dtype->type_num <= NPY_UINT64) {
return count_nonzero_int(PyArray_NDIM(self), (void *) PyArray_DATA(self),
PyArray_DIMS(self), PyArray_STRIDES(self), dtype->type_num);