From 2361ec9c0efd094f5096cf40dd3cb94465a3d0a1 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 13 Jun 2015 22:32:10 +0200 Subject: [PATCH] Fix a regression introduced in changeset 2461531e5a05e8ff48d987b12b5c745eea281722 --- Eigen/src/Core/products/CoeffBasedProduct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/products/CoeffBasedProduct.h b/Eigen/src/Core/products/CoeffBasedProduct.h index fb638b65c..2a9d65b94 100644 --- a/Eigen/src/Core/products/CoeffBasedProduct.h +++ b/Eigen/src/Core/products/CoeffBasedProduct.h @@ -452,7 +452,7 @@ struct product_packet_impl static EIGEN_STRONG_INLINE void run(Index row, Index col, const Lhs& lhs, const Rhs& rhs, Packet& res) { res = pset1(0); - for(Index i = 1; i < lhs.cols(); ++i) + for(Index i = 0; i < lhs.cols(); ++i) res = pmadd(pset1(lhs.coeff(row, i)), rhs.template packet(i, col), res); } };