mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
4 lines
171 B
C++
4 lines
171 B
C++
|
|
MatrixXf A = MatrixXf::Random(3, 2);
|
||
|
|
VectorXf b = VectorXf::Random(3);
|
||
|
|
cout << "The solution using the COD is:\n" << A.completeOrthogonalDecomposition().solve(b) << endl;
|