Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

vectorizing find() function

siddy
Beginner
99 Views
Hi everyone,
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.
Thanks,
Sid.
0 Kudos
0 Replies
Reply