itrue#
- class itrue(arr, inds)[source]#
Returns the indices that are true in the array – name is short for indices[true]
- Parameters:
arr (array) – a Boolean array, used as a filter
inds (array) – any other array (usually, an array of indices) of the same size
Example:
inds = hpv.itrue(np.array([True,False,True,True]), inds=np.array([5,22,47,93]))