mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bugfix in CholeskyWithoutSquareRoot::solve found by Timothy Hunter
This commit is contained in:
@@ -149,10 +149,9 @@ typename Derived::Eval CholeskyWithoutSquareRoot<MatrixType>::solve(const Matrix
|
||||
|
||||
return m_matrix.adjoint().template part<UnitUpper>()
|
||||
.solveTriangular(
|
||||
(matrixL()
|
||||
.solveTriangular(b))
|
||||
.cwise()/m_matrix.diagonal()
|
||||
);
|
||||
( m_matrix.cwise().inverse().diagonal().asDiagonal()
|
||||
* matrixL().solveTriangular(b))
|
||||
);
|
||||
}
|
||||
|
||||
/** \cholesky_module
|
||||
|
||||
Reference in New Issue
Block a user