find(x: array<boolean | number> | matrix<boolean | number>): array
Finds the indices of nonzero (true) elements in an array or matrix.
Given an input array or matrix, returns the indices of elements that are true. For a matrix, the indices are flattened row-wise.
An array of indices where the values are true.