numpy/numpy — pull request #4370 by juliantaylor (2014-02-26 18:48:59+00:00)
Title: ENH: improve PyArray_Nonzero for sparse bool masks

we already count the number of true elements so we can decide when its
sparse and use faster (4-byte) vectorized npy_memchr.