mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-28 14:54:11 +08:00
Remove redundant branch for handling dynamic vector*vector. This will be handled by the equivalent branch in the specialization for GemvProduct.
This commit is contained in:
parent
cf12474a8b
commit
276db21f26
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user