Return indices that are non-zero in the flattened version of a.
This is equivalent to a.ravel().nonzero().
a (cupy.ndarray) – input array
Output array, containing the indices of the elements of a.ravel() that are non-zero.
- Return type:
This function may synchronize the device.