I am trying to see if it possible to avoid using loops to generate functionality
similar to find() function of Matlab. I have experimented with using LTValGTVal.
and other compare functions, but ultimately, I find that I have to do atleast 1 loop
to get the values (whereever the "1"s are). I would be happy to hear some thoughts
on this, and if possible, some ideas on if it is at all possible to do this without a loop.
vectorizing find() function