From 7fae9b358d68b43330e2b9889c413e262a9a04cf Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 29 Oct 2013 12:42:46 +0100 Subject: [PATCH] Use aligned loads in Matrix-Vector product where possible. Fixes bug #689 --- Eigen/src/Core/products/GeneralMatrixVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/products/GeneralMatrixVector.h b/Eigen/src/Core/products/GeneralMatrixVector.h index 15dc59b98..c8697c913 100644 --- a/Eigen/src/Core/products/GeneralMatrixVector.h +++ b/Eigen/src/Core/products/GeneralMatrixVector.h @@ -293,7 +293,7 @@ EIGEN_DONT_INLINE void general_matrix_vector_product(&lhs0[i]), ptmp0, pload(&res[i]))); + pstore(&res[i], pcj.pmadd(pload(&lhs0[i]), ptmp0, pload(&res[i]))); else for (Index i = alignedStart;i(&lhs0[i]), ptmp0, pload(&res[i])));