def outer(vec1, vec2):
    if not isinstance(vec1, Vector):
        raise TypeError('Outer product is between two Vectors')
    return vec1 | vec2
Outer product convenience wrapper for Vector.outer():
dataset/ETHPy150Open sympy/sympy/sympy/physics/vector/functions.py/outer