diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h index 649bd3f96..cfd2f0095 100644 --- a/Eigen/src/Core/products/GeneralMatrixMatrix.h +++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h @@ -401,7 +401,7 @@ class GeneralProduct template void scaleAndAddTo(Dest& dst, const Scalar& alpha) const { eigen_assert(dst.rows()==m_lhs.rows() && dst.cols()==m_rhs.cols()); - if(a_lhs.cols()==0 || a_lhs.rows()==0 || a_rhs.cols()==0) + if(m_lhs.cols()==0 || m_lhs.rows()==0 || m_rhs.cols()==0) return; typename internal::add_const_on_value_type::type lhs = LhsBlasTraits::extract(m_lhs);