Mjolnir Core
Core functionality of the Mjolnir API

◆ dot_product() [2/2]

auto dot_product ( T_RegisterType  lhs,
T_RegisterType  rhs 
) -> x86::ElementType<T_RegisterType>
inlinenoexcept

Calculate the dot product of 2 vectors.

Only the first t_size elements of a register are considered.

Template Parameters
t_sizeSize of the vector. Note that this number should not exceed the number of register elements.
T_RegisterTypeRegister type that stores the vector data.
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