static-frame / arraykit

Python C Extensions for StaticFrame
Other
8 stars 2 forks source link

Utility to return first or last True in a Boolean array #81

Closed flexatone closed 1 year ago

flexatone commented 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.

Need only work on contiguous arrays, C-ordered arrays.