(a)
| 2136 | |
| 2137 | @derived_from(np) |
| 2138 | def nonzero(a): |
| 2139 | ind = argwhere(a) |
| 2140 | if ind.ndim > 1: |
| 2141 | return tuple(ind[:, i] for i in range(ind.shape[1])) |
| 2142 | else: |
| 2143 | return (ind,) |
| 2144 | |
| 2145 | |
| 2146 | def _unravel_index_kernel(indices, func_kwargs): |
no test coverage detected