00001 typedef Matrix<float,3,3> Matrix3x3; 00002 Matrix3x3 m = Matrix3x3::Random(); 00003 Matrix3f y = Matrix3f::Random(); 00004 cout << "Here is the matrix m:" << endl << m << endl; 00005 cout << "Here is the matrix y:" << endl << y << endl; 00006 Matrix3f x; 00007 x = m.householderQr().solve(y); 00008 assert(y.isApprox(m*x)); 00009 cout << "Here is a solution x to the equation mx=y:" << endl << x << endl;