HouseholderQR_solve.cpp
Go to the documentation of this file.
1 typedef Matrix<float,3,3> Matrix3x3;
2 Matrix3x3 m = Matrix3x3::Random();
3 Matrix3f y = Matrix3f::Random();
4 cout << "Here is the matrix m:" << endl << m << endl;
5 cout << "Here is the matrix y:" << endl << y << endl;
6 Matrix3f x;
7 x = m.householderQr().solve(y);
8 assert(y.isApprox(m*x));
9 cout << "Here is a solution x to the equation mx=y:" << endl << x << endl;
x
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition: gnuplot_common_settings.hh:12
y
Matrix3f y
Definition: HouseholderQR_solve.cpp:3
m
Matrix3x3 m
Definition: HouseholderQR_solve.cpp:2
Matrix3x3
Matrix< float, 3, 3 > Matrix3x3
Definition: HouseholderQR_solve.cpp:1


gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:01:15