* add cmake files to find (optional) supported libraries

* add unit tests for sparse cholesky
This commit is contained in:
Gael Guennebaud
2008-10-20 10:43:11 +00:00
parent f44316e5f8
commit fa27cd1ed0
10 changed files with 331 additions and 97 deletions

View File

@@ -139,7 +139,6 @@ void SparseLLT<MatrixType,Backend>::compute(const MatrixType& a)
for (int j = 0; j < size; ++j)
{
Scalar x = ei_real(a.coeff(j,j));
int endSize = size-j-1;
// TODO better estimate of the density !
tempVector.init(density>0.001? IsDense : IsSparse);
@@ -191,7 +190,8 @@ bool SparseLLT<MatrixType, Backend>::solveInPlace(MatrixBase<Derived> &b) const
ei_assert(size==b.rows());
m_matrix.solveTriangularInPlace(b);
m_matrix.adjoint().solveTriangularInPlace(b);
// FIXME should be .adjoint() but it fails to compile...
m_matrix.transpose().solveTriangularInPlace(b);
return true;
}