diff options
author | 2015-10-07 15:44:12 +0200 | |
---|---|---|
committer | 2015-10-07 15:44:12 +0200 | |
commit | aba1eda71e8743454175fc315f3c0c2454e54291 (patch) | |
tree | 8e6ff3f4a3b08a23295fc03518fd215a804c9bee /Eigen/src/Core/ProductEvaluators.h | |
parent | 41cc1f9033e7a316834b409eb2c6db69fd5de56d (diff) |
Help clang to inline some functions, thus fixing some regressions
Diffstat (limited to 'Eigen/src/Core/ProductEvaluators.h')
-rwxr-xr-x | Eigen/src/Core/ProductEvaluators.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h index 6e1be1227..529870300 100755 --- a/Eigen/src/Core/ProductEvaluators.h +++ b/Eigen/src/Core/ProductEvaluators.h @@ -463,9 +463,8 @@ struct product_evaluator<Product<Lhs, Rhs, LazyProduct>, ProductTag, DenseShape, && (InnerSize % packet_traits<Scalar>::size == 0) }; - EIGEN_DEVICE_FUNC const CoeffReturnType coeff(Index row, Index col) const + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CoeffReturnType coeff(Index row, Index col) const { - // TODO check performance regression wrt to Eigen 3.2 which has special handling of this function return (m_lhs.row(row).transpose().cwiseProduct( m_rhs.col(col) )).sum(); } @@ -477,7 +476,6 @@ struct product_evaluator<Product<Lhs, Rhs, LazyProduct>, ProductTag, DenseShape, { const Index row = RowsAtCompileTime == 1 ? 0 : index; const Index col = RowsAtCompileTime == 1 ? index : 0; - // TODO check performance regression wrt to Eigen 3.2 which has special handling of this function return (m_lhs.row(row).transpose().cwiseProduct( m_rhs.col(col) )).sum(); } |