From e39ad8badcea55bce7bd0de10fc0d28788141411 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Sat, 12 Apr 2025 18:54:09 +0000 Subject: [PATCH] fix constexpr in CoreEvaluators.h --- Eigen/src/Core/CoreEvaluators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/CoreEvaluators.h b/Eigen/src/Core/CoreEvaluators.h index 87eb65bda..e4a74d7f0 100644 --- a/Eigen/src/Core/CoreEvaluators.h +++ b/Eigen/src/Core/CoreEvaluators.h @@ -257,7 +257,7 @@ struct evaluator> : evaluator_base { plainobjectbase_evaluator_data m_d; private: - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index getIndex(Index row, Index col) const { + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index constexpr getIndex(Index row, Index col) const { return IsRowMajor ? row * m_d.outerStride() + col : row + col * m_d.outerStride(); } };