Sign in
eigen
/
mirror
/
c8d5cba8d4b038c35ffbb814555fcd3cf9114af2
/
.
/
doc
/
snippets
/
LeastSquaresCOD.cpp
blob: b7325bc29346c386cd7f2264f01dbf4b90146db4 [
file
]
MatrixXf
A
=
MatrixXf
::
Random
(
3
,
2
);
VectorXf
b
=
VectorXf
::
Random
(
3
);
cout
<<
"The solution using the COD is:\n"
<<
A
.
completeOrthogonalDecomposition
().
solve
(
b
)
<<
endl
;