diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-10-27 11:01:37 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-10-27 11:01:37 +0100 |
commit | 73f692d16b544d619c2234259f4086cc93c577df (patch) | |
tree | 0ecdaa5ef6b936671cd784736eac320510268e7f /test/sparse_basic.cpp | |
parent | e6f8c5c325fca53b53436b6bd8d66749444216bb (diff) |
Fix ambiguous instantiation
Diffstat (limited to 'test/sparse_basic.cpp')
-rw-r--r-- | test/sparse_basic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index e8ebd7000..d8e42e984 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -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); |