Redo commit 6f55c862 after rebasing.

This commit is contained in:
Atgeirr Flø Rasmussen
2014-12-05 13:10:33 +01:00
parent 5b6765f9d8
commit cda742ab0e

View File

@@ -102,10 +102,10 @@ void fastSparseProduct(const Lhs& lhs, const Rhs& rhs, ResultType& res)
const Scalar y = rhsIt.value();
for (typename Lhs::InnerIterator lhsIt(lhs, rhsIt.index()); lhsIt; ++lhsIt)
{
const Index i = lhsIt.index();
const Scalar val = lhsIt.value() * y;
if( std::abs( val ) > epsilon )
{
const Index i = lhsIt.index();
if(!mask[i])
{
mask[i] = true;