Contents
Dot Product (Dot)
Definition: Given a vector
and vector
, the dot product is the inner product of
and
, or
.
How is it used?
Test for Orthogonality
Two vectors are Orthogonal if their dot product is equal to zero.
Algorithms
We will discuss algorithms for the closely related Apdot (alpha plus dot product) operation:
.
Partitioned Matrix Expression
Loop-invariants
The dependencies in the above PME allow for two different loop-invariants to be identified:
Invariant 1
![\[
\alpha = \tr{x}_T y_T + \hat{\alpha}
\] \[
\alpha = \tr{x}_T y_T + \hat{\alpha}
\]](/wiki/LA.wiki/Apdot/Invariants/Inv1?action=AttachFile&do=get&target=latex_fbf6231dcf448676d29390bf1db26800806d6ed2_p1.png)
Invariant 2
![\[
\alpha = \tr{x}_B y_B + \hat{\alpha}
\] \[
\alpha = \tr{x}_B y_B + \hat{\alpha}
\]](/wiki/LA.wiki/Apdot/Invariants/Inv2?action=AttachFile&do=get&target=latex_f967c005c78381e0f1dab4e0fda9ca27a204cc00_p1.png)
Algorithmic variants
Related Operations
Ger (Outer product)

