aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/products
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-11-12 21:54:56 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-11-12 21:54:56 +0000
commit276db21f2659f8c2133e2794e3df29c90427142d (patch)
tree599f97b227d93e12844d99af4d56123efb298932 /Eigen/src/Core/products
parentcf12474a8b7c121f7ca95e28f8ee3f8d9405cd41 (diff)
Remove redundant branch for handling dynamic vector*vector. This will be handled by the equivalent branch in the specialization for GemvProduct.
Diffstat (limited to 'Eigen/src/Core/products')
-rw-r--r--Eigen/src/Core/products/GeneralMatrixMatrix.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h
index 8cdf14702..0d55bdf9e 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrix.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h
@@ -471,12 +471,7 @@ struct generic_product_impl<Lhs,Rhs,DenseShape,DenseShape,GemmProduct>
if(a_lhs.cols()==0 || a_lhs.rows()==0 || a_rhs.cols()==0)
return;
- if (dst.cols() == 1 && dst.rows() == 1) {
- // Fallback to inner product if both the lhs and rhs is a runtime vector.
- dst.coeffRef(0,0) += alpha * (a_lhs.row(0).transpose().cwiseProduct(a_rhs.col(0)).sum());
- return;
- }
- else if (dst.cols() == 1)
+ if (dst.cols() == 1)
{
// Fallback to GEMV if either the lhs or rhs is a runtime vector
typename Dest::ColXpr dst_vec(dst.col(0));