An imbedding method for matrix eigenvalue problems