Calculate the dot product of two vectors
\(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\)
\[\begin{split}\text{dot}(\boldsymbol{a},\boldsymbol{b})=
\begin{pmatrix}a_1\\\vdots\\a_n\end{pmatrix}\cdot
\begin{pmatrix}b_1\\\vdots\\b_n\end{pmatrix}=
a_1\cdot b_1+a_2\cdot b_2+\dots+a_n\cdot b_n.\end{split}\]
- Parameters:
- vec_alist
First vector \(\boldsymbol{a}\)
- vec_blist
Second vector \(\boldsymbol{b}\)
- Returns:
- dotfloat
Dot product value