Helper Module¶
Helper module that provides usable math functions.
-
helper.
dot_product
(a: List[Union[int, float]], b: List[Union[int, float]]) → Union[int, float][source]¶ Compute dot product between two vectors.
- Parameters
- alist of (float or int)
First vector.
- blist of (float or int)
Second vector.
- Returns
- int or float
The result of the dot product.
- Raises
- Exception
If a and b have different lengths.