namespace Eigen { /** \eigenManualPage LinearLeastSquares Solving linear least squares problems lede \eigenAutoToc \section LinearLeastSquaresCopied Copied The best way to do least squares solving is with a SVD decomposition. Eigen provides one as the JacobiSVD class, and its solve() is doing least-squares solving. Here is an example:
Example:Output:
\include TutorialLinAlgSVDSolve.cpp \verbinclude TutorialLinAlgSVDSolve.out
For more information, including faster but less reliable methods, read our page concentrating on \ref LinearLeastSquares "linear least squares problems". */ }