Introduction to CUDA C
Introduction to CUDA C
Introduction to CUDA C
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Dot Product<br />
� Unlike vec<strong>to</strong>r addition, dot product is a reduction from vec<strong>to</strong>rs <strong>to</strong> a scalar<br />
a b<br />
a 0<br />
a 1<br />
a 2<br />
a 3<br />
*<br />
*<br />
*<br />
*<br />
b 0<br />
b 1<br />
b 2<br />
b 3<br />
c = a ∙ b<br />
+<br />
c = (a 0, a 1, a 2, a 3) ∙ (b 0, b 1, b 2, b 3)<br />
c = a 0 b 0 + a 1 b 1 + a 2 b 2 + a 3 b 3<br />
c