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

Looking for an IPP function

$
0
0

I have the following loop that I would like to optimize. Are there any IPP function for each of these statements in the for loop?

double fast_product_sum(int n, double *a, int* indexes, double* b, double* c)
{

    double sum = 0.0;
    for (int i = 0; i < n; i++)
    {
        c[i] = a[i] + b[indexes[i]];
        sum += a[i] + b[indexes[i]];
    }

    return sum;
}

I apprieciate any help in this matter.

Regards

Chris


Viewing all articles
Browse latest Browse all 1489

Trending Articles