Fix ambiguous instantiation

This commit is contained in:
Gael Guennebaud
2015-10-27 11:01:37 +01:00
parent e6f8c5c325
commit 73f692d16b
3 changed files with 62 additions and 19 deletions

View File

@@ -438,7 +438,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);