def vector_product(v0, v1, axis=0):
    return numpy.cross(v0, v1, axis=axis)
Flatten a 1x1 matrix to a scalar, return larger matrices unchanged.
dataset/ETHPy150Open IEEERobotics/bot/bot/hardware/complex_hardware/transformations.py/vector_product--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/matrixutils.py/flatten_scalar