LeastSquaresQR.cpp
Go to the documentation of this file.
1 MatrixXf A = MatrixXf::Random(3, 2);
2 VectorXf b = VectorXf::Random(3);
3 cout << "The solution using the QR decomposition is:\n"
4  << A.colPivHouseholderQr().solve(b) << endl;
MatrixXf A
VectorXf b
Matrix< float, Dynamic, Dynamic > MatrixXf
DynamicĂ—Dynamic matrix of type float.
Definition: Matrix.h:501
Matrix< float, Dynamic, 1 > VectorXf
DynamicĂ—1 vector of type float.
Definition: Matrix.h:501