Numpy Vector Outer Product Expansion Definition