parameters: (tree, bin_X, left_mask, right_mask)
return_statement: return left_index, right_index
docstring: Finds indices in sorted array of integers.
  
      Most significant h bits in the binary representations of the
      integers are matched with the items' most significant h bits.
docstring_summary: Finds indices in sorted array of integers.
docstring_tokens: Finds indices in sorted array of integers .
function: def _find_matching_indices(tree, bin_X, left_mask, right_mask):
      """Finds indices in sorted array of integers.
  
      Most significant h bits in the binary representations of the
      integers are matched with the items' most significant h bits.
      """
      left_index = np.searchsorted(tree, bin_X & left_mask)
      right_index = np.searchsorted(tree, bin_X | right_mask,
                                    side='right')
      return left_index, right_index
function_tokens: def _find_matching_indices ( tree , bin_X , left_mask , right_mask ) : left_index = np . searchsorted ( tree , bin_X & left_mask ) right_index = np . searchsorted ( tree , bin_X | right_mask , side = 'right' ) return left_index , right_index