I did a quick scan for all methods in vdsp framework but didn't found a method for this specific task. Is there a method for that I may have overseen?
float multiplyAndAccumulate (float* p1, float* p2, int N)
{
float s = 0;
const float* e = p1 + N;
while (p1 != e)
{
s += (*p1) * (*p2);
p1++;
p2++;
}
return s;
}