Closed
Description
opened on Feb 19, 2017
Seems like it would be useful to have a version of find
that returns a vector of cartesian indices, in analogy to the new enumerate
. findnz
is basically a pre-CartesianIndex version of this idea that only happens to work for 2d arrays.
One possible API, in analogy with the enumerate API, is to have find
take a singleton-valued first parameter that selects the output format.
Thoughts?
Activity