Fix bug in fastDiagSparseProduct().

This commit is contained in:
Atgeirr Flø Rasmussen
2015-09-07 13:00:02 +02:00
committed by babrodtk
parent 11a33b3017
commit 87f677af02
+1 -1
View File
@@ -153,7 +153,7 @@ inline void fastDiagSparseProduct(const Eigen::DiagonalMatrix<double, Eigen::Dyn
for (int col = 0; col < n; ++col) {
typedef Eigen::SparseMatrix<double>::InnerIterator It;
for (It it(res, col); it; ++it) {
it.valueRef() *= rhs.diagonal()(it.row());
it.valueRef() *= lhs.diagonal()(it.row());
}
}
}