mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
28 lines
692 B
Plaintext
28 lines
692 B
Plaintext
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:
|
|
<table class="example">
|
|
<tr><th>Example:</th><th>Output:</th></tr>
|
|
<tr>
|
|
<td>\include TutorialLinAlgSVDSolve.cpp </td>
|
|
<td>\verbinclude TutorialLinAlgSVDSolve.out </td>
|
|
</tr>
|
|
</table>
|
|
|
|
For more information, including faster but less reliable methods, read our page concentrating on \ref LinearLeastSquares "linear least squares problems".
|
|
|
|
*/
|
|
|
|
}
|