idefinedi#

class idefinedi(arr, inds)[source]#

Returns the indices that are defined in the array – name is short for indices[defined[indices]]

Parameters:
  • arr (array) – any array, used as a filter

  • inds (array) – an array of indices for the original array

Example:

inds = cv.idefinedi(np.array([4,np.nan,0,np.nan,np.nan,4,7,4,np.nan]), inds=np.array([0,1,3,5]))