locate

Function locate 

Source
pub fn locate<T: HasAfEnum>(input: &Array<T>) -> Array<u32>
Expand description

Locate the indices of non-zero elements.

The locations are provided by flattening the input into a linear array.

§Parameters

  • input - Input Array

§Return Values

Array of indices where the input Array has non-zero values.