Additional fix to enforce the compiler to use the correct prunning method.

This commit is contained in:
Hauke Heibel 2010-11-02 14:33:33 +01:00
parent 3a3f163e31
commit d204ec491d

View File

@ -246,7 +246,7 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
m2.finalize();
VERIFY(countFalseNonZero+countTrueNonZero == m2.nonZeros());
VERIFY_IS_APPROX(m2, refM2);
m2.prune(1);
m2.prune(Scalar(1));
VERIFY(countTrueNonZero==m2.nonZeros());
VERIFY_IS_APPROX(m2, refM2);
}