Description
Currently RealMatrix M = x.outerProduct throws an exception if x and y are different sizes. This is as documented in the Javadoc but not what one expects mathematically (see e.g. http://en.wikipedia.org/wiki/Outer_product) - the vectors can be any size.
So please remove the restriction that the vectors should be the same size, as this doesn't seem to be necessary either mathematically or in terms of the implementation.