Back to Numerical Arrays (NumPy)
np.flatnonzero
Return flat indices of nonzero elements.
Syntax
np.flatnonzero(arr)
Description
Return flat indices of nonzero elements.
Parameters
| Name | Description |
|---|---|
| arr | - Input array |
Returns
Promise<NDArray>