add unit tests for sparse LU and fix a couple of warnings

This commit is contained in:
Gael Guennebaud
2008-10-20 11:37:45 +00:00
parent fa27cd1ed0
commit e1c50a3cb1
5 changed files with 61 additions and 37 deletions

View File

@@ -124,7 +124,7 @@ void AmbiVector<Scalar>::nonZeros() const
template<typename Scalar>
void AmbiVector<Scalar>::init(RealScalar estimatedDensity)
{
if (m_mode = estimatedDensity>0.1)
if (estimatedDensity>0.1)
init(IsDense);
else
init(IsSparse);