def dot3(v1, v2):
    """
    Quick convenient function to compute dot product betwee two 3-element vectors
    dot3: 231 ns | np.dot: 745 ns
    """
    a1, a2, a3 = v1
    b1, b2, b3 = v2
    return a1 * b1 + a2 * b2 + a3 * b3
