Fix bug in fastDiagSparseProduct().

This commit is contained in:
Atgeirr Flø Rasmussen 2015-08-26 15:40:41 +02:00 committed by babrodtk
parent 11a33b3017
commit 87f677af02

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());
}
}
}