Numpy Matrix Outer Product Expansion