mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Big refactoring/cleaning in the spasre module with
in particular the addition of a selfadjointView, and the extension of triangularView. The rest is cleaning and does not change/extend the API.
This commit is contained in:
@@ -193,15 +193,15 @@ bool SparseLLT<MatrixType, Backend>::solveInPlace(MatrixBase<Derived> &b) const
|
||||
const int size = m_matrix.rows();
|
||||
ei_assert(size==b.rows());
|
||||
|
||||
m_matrix.template triangular<LowerTriangular>().solveInPlace(b);
|
||||
m_matrix.template triangularView<LowerTriangular>().solveInPlace(b);
|
||||
// FIXME should be simply .adjoint() but it fails to compile...
|
||||
if (NumTraits<Scalar>::IsComplex)
|
||||
{
|
||||
CholMatrixType aux = m_matrix.conjugate();
|
||||
aux.transpose().template triangular<UpperTriangular>().solveInPlace(b);
|
||||
aux.transpose().template triangularView<UpperTriangular>().solveInPlace(b);
|
||||
}
|
||||
else
|
||||
m_matrix.transpose().template triangular<UpperTriangular>().solveInPlace(b);
|
||||
m_matrix.transpose().template triangularView<UpperTriangular>().solveInPlace(b);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user