mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-28 23:04:18 +08:00
Simplify expression for inner product fallback in Gemv product evaluator.
This commit is contained in:
parent
276db21f26
commit
bec72345d6
@ -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.
|
// Fallback to inner product if both the lhs and rhs is a runtime vector.
|
||||||
if (lhs.rows() == 1 && rhs.cols() == 1) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
LhsNested actual_lhs(lhs);
|
LhsNested actual_lhs(lhs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user