Find the dot-product $\mathbf{A} \cdot \mathbf{B}$