vectorizing find() function

vectorizing find() function

Portrait de siddy

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.

1 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.