Closed flexatone closed 1 year ago
Likely can be faster than using np.nonzero, and can return -1 when no True values are found, which is not possible with np.argmax.
np.nonzero
np.argmax
Need only work on contiguous arrays, C-ordered arrays.
Likely can be faster than using
np.nonzero
, and can return -1 when no True values are found, which is not possible withnp.argmax
.Need only work on contiguous arrays, C-ordered arrays.