def dot(vec1, vec2):
    if not isinstance(vec1, (Vector, Dyadic)):
        raise TypeError('Dot product is between two vectors')
    return vec1 & vec2
Dot product convenience wrapper for Vector.dot():
dataset/ETHPy150Open sympy/sympy/sympy/physics/vector/functions.py/dot