parameters: (a)
return_statement: return pack(new_indexes, a)
docstring: Return indices that are non-zero in the flattened version of a.
      This is equivalent to a.ravel().nonzero()[0].
  
      Parameters
      ----------
      a : BhArray
          Input array.
  
      Returns
      -------
      res : BhArray
          Output array, containing the indices of the elements of `a.ravel()`
          that are non-zero.
docstring_summary: Return indices that are non-zero in the flattened version of a.
      This is equivalent to a.ravel().nonzero()[0].
docstring_tokens: Return indices that are non - zero in the flattened version of a . This is equivalent to a . ravel () . nonzero () [ 0 ] .
function: def flatnonzero(a):
      """Return indices that are non-zero in the flattened version of a.
      This is equivalent to a.ravel().nonzero()[0].
  
      Parameters
      ----------
      a : BhArray
          Input array.
  
      Returns
      -------
      res : BhArray
          Output array, containing the indices of the elements of `a.ravel()`
          that are non-zero.
      """
  
      if a.dtype is not np.bool:
          a = a != 0
      new_indexes = array_create.arange(a.size, dtype=np.uint64)
      return pack(new_indexes, a)
function_tokens: def flatnonzero ( a ) : if a . dtype is not np . bool : a = a != 0 new_indexes = array_create . arange ( a . size , dtype = np . uint64 ) return pack ( new_indexes , a )