fix constexpr in CoreEvaluators.h

This commit is contained in:
Charles Schlosser 2025-04-12 18:54:09 +00:00 committed by Rasmus Munk Larsen
parent 7aefb9f4d9
commit e39ad8badc

View File

@ -257,7 +257,7 @@ struct evaluator<PlainObjectBase<Derived>> : evaluator_base<Derived> {
plainobjectbase_evaluator_data<Scalar, OuterStrideAtCompileTime> 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();
}
};