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]];
I apprieciate any help in this matter.