aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Product.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/Product.h')
-rw-r--r--Eigen/src/Core/Product.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h
index 287fc9c5b..3c5c56f1c 100644
--- a/Eigen/src/Core/Product.h
+++ b/Eigen/src/Core/Product.h
@@ -212,6 +212,11 @@ class GeneralProduct<Lhs, Rhs, OuterProduct>
ei_outer_product_selector<(int(Dest::Flags)&RowMajorBit) ? RowMajor : ColMajor>::run(*this, dest, alpha);
}
+ Scalar coeff(int row, int col) const
+ {
+ return this->lhs().coeff(row) * this->rhs().coeff(col);
+ }
+
private:
GeneralProduct& operator=(const GeneralProduct&);
};