1*bf2c3715SXin Li Matrix<float,2,3> m = Matrix<float,2,3>::Random(); 2*bf2c3715SXin Li Matrix2f y = Matrix2f::Random(); 3*bf2c3715SXin Li cout << "Here is the matrix m:" << endl << m << endl; 4*bf2c3715SXin Li cout << "Here is the matrix y:" << endl << y << endl; 5*bf2c3715SXin Li Matrix<float,3,2> x = m.fullPivLu().solve(y); 6*bf2c3715SXin Li if((m*x).isApprox(y)) 7*bf2c3715SXin Li { 8*bf2c3715SXin Li cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; 9*bf2c3715SXin Li } 10*bf2c3715SXin Li else 11*bf2c3715SXin Li cout << "The equation mx=y does not have any solution." << endl; 12