Fix several shorcoming is cost computation (the Dynamic case was ignored)

This commit is contained in:
Gael Guennebaud
2015-10-28 11:52:28 +01:00
parent 1eea595550
commit e82f507747
5 changed files with 8 additions and 4 deletions

View File

@@ -533,7 +533,7 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
{
Index i = internal::random<Index>(0,rows-1);
Index j = internal::random<Index>(0,rows-1);
Index v = internal::random<Scalar>();
Scalar v = internal::random<Scalar>();
m1.coeffRef(i,j) = v;
refMat1.coeffRef(i,j) = v;
VERIFY_IS_APPROX(m1, refMat1);