diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-11-12 23:43:15 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-11-12 23:43:15 +0000 |
commit | bec72345d69917f475e577d23df0ca4ed967a4f0 (patch) | |
tree | d926e470da8cc2c1056a2c5570698b3628797425 /Eigen/src/Core/ProductEvaluators.h | |
parent | 276db21f2659f8c2133e2794e3df29c90427142d (diff) |
Simplify expression for inner product fallback in Gemv product evaluator.
Diffstat (limited to 'Eigen/src/Core/ProductEvaluators.h')
-rw-r--r-- | Eigen/src/Core/ProductEvaluators.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h index 6b32c508b..6e220d736 100644 --- a/Eigen/src/Core/ProductEvaluators.h +++ b/Eigen/src/Core/ProductEvaluators.h @@ -377,7 +377,7 @@ struct generic_product_impl<Lhs,Rhs,DenseShape,DenseShape,GemvProduct> { // Fallback to inner product if both the lhs and rhs is a runtime vector. if (lhs.rows() == 1 && rhs.cols() == 1) { - dst.coeffRef(0,0) += alpha * (lhs.row(0).transpose().cwiseProduct(rhs.col(0)).sum()); + dst.coeffRef(0,0) += alpha * lhs.row(0).conjugate().dot(rhs.col(0)); return; } LhsNested actual_lhs(lhs); |