Quantcast
Channel: Intel® Software - Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1489

IPP and selection

$
0
0

Hello,

I am looking for an IPP function which is equivalent to the following code :

selection( float* v_sel, float* v_a, float* v_b, float* v_out, int size)
{
int i;
/* v_sel is a boolean vector */

for (i=0 ; i < size ; i++)
{

if( *v_sel == 0.)
{
      *v_out = *v_a;
}
else
{
    *v_out = *v_b;
}

v_sel++
v_a++
v_b++
v_out++

}

Any idea ?

Thanks a lot

 


Viewing all articles
Browse latest Browse all 1489

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>