def nonzero(a):
 return a.nonzero()

def nonzero ( a ) : return a . nonzero ( )
returns one of the following: if return_matrix is false : a tuple of vector arrays such that the ith element of the jth array is the index of the ith non-zero element of the input array in the jth dimension .