From bc57c68cf58bc91732ae150d2df2f2151a0d9819 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 6 Jul 2010 20:53:48 +0200 Subject: [PATCH] bug fix forgot to conjugate the scalar factor when needed --- Eigen/src/Core/products/GeneralMatrixMatrix.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h index 5150daacd..6a9402cba 100644 --- a/Eigen/src/Core/products/GeneralMatrixMatrix.h +++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h @@ -73,6 +73,9 @@ static void run(Index rows, Index cols, Index depth, ei_const_blas_data_mapper lhs(_lhs,lhsStride); ei_const_blas_data_mapper rhs(_rhs,rhsStride); + if (ConjugateRhs) + alpha = ei_conj(alpha); + typedef typename ei_packet_traits::type PacketType; typedef ei_product_blocking_traits Blocking;