The numerical solution of the generalized eigenvalue problem for rectangular matrices