dotproduct¶
- emlib.iterlib.dotproduct(vec1, vec2)[source]¶
Returns the dot product (the sum of the product between each pair) between vec1 and vec2
- Parameters:
vec1 (
Iterable
[TypeVar
(T
)]) – a seq. of Tvec2 (
Iterable
[TypeVar
(T
)]) – a seq. of T
- Return type:
TypeVar
(T
)- Returns:
the sum of the product of vec1_n * vec2_n for each n