mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-25 07:43:14 +08:00
fix typo found by noir.sender from KDE forums
This commit is contained in:
parent
1e6097a810
commit
8e2b191acf
@ -69,7 +69,7 @@ The latter avoids square roots and is therefore slightly more stable than the fo
|
|||||||
#include <Eigen/Cholesky>
|
#include <Eigen/Cholesky>
|
||||||
MatrixXf D = MatrixXf::Random(8,4);
|
MatrixXf D = MatrixXf::Random(8,4);
|
||||||
MatrixXf A = D.transpose() * D;
|
MatrixXf A = D.transpose() * D;
|
||||||
VectorXf b = D.transpose() * VectorXf::Random(4);
|
VectorXf b = A * VectorXf::Random(4);
|
||||||
VectorXf x;
|
VectorXf x;
|
||||||
A.llt().solve(b,&x); // using a LLT factorization
|
A.llt().solve(b,&x); // using a LLT factorization
|
||||||
A.ldlt().solve(b,&x); // using a LDLT factorization
|
A.ldlt().solve(b,&x); // using a LDLT factorization
|
||||||
|
Loading…
x
Reference in New Issue
Block a user