Mjolnir Core
Core functionality of the Mjolnir API

◆ dot_product() [1/2]

constexpr auto dot_product ( const std::array< T_Type, t_size > &  lhs,
const std::array< T_Type, t_size > &  rhs 
) -> T_Type
constexprnoexcept

Calculate the dot product of 2 vectors.

Template Parameters
t_sizeSize of the vector
T_TypeData type of the vector elements and the returned value
Parameters
[in]lhsData of the vector on the left-hand side of the operator
[in]rhsData of the vector on the right-hand side of the operator
Returns
Dot product