Defined in header <scicpp/core.hpp>
Return the dot product of two vectors.
The vdot(a, b) function handles complex numbers differently than dot(a, b). If the first argument is complex the complex conjugate of the first argument is used for the calculation of the dot product.
InputItLhs
, class InputItRhs
>vdot
(InputItLhs first1, InputItLhs last1, InputItRhs first2, InputItRhs last2)¶ArrayLhs
, class ArrayRhs
>vdot
(const ArrayLhs &a1, const ArrayRhs &a2)¶