Dot Product ----------- .. highlight:: c The dot product is an algebraic operation that takes two equal-length sequences of numbers and returns a single number obtained by multiplying corresponding entries and then summing those products. A common implementation of this operation is shown below:: double dot_product(int N, int v1[N], int v2[N]) { double result = 0.0; for (long i=0; i= CHUNK_SIZE) ? CHUNK_SIZE : N - CHUNK_SIZE; C[j] = 0; #pragma omp task label( dot_prod ) firstprivate( j, i, actual_size ) { for (long ii=0; ii