itruei#
- class itruei(arr, inds)[source]#
Returns the indices that are true in the array – name is short for indices[true[indices]]
- Parameters:
arr (array) – a Boolean array, used as a filter
inds (array) – an array of indices for the original array
Example:
inds = hpv.itruei(np.array([True,False,True,True,False,False,True,False]), inds=np.array([0,1,3,5]))