mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix constexpr in CoreEvaluators.h
This commit is contained in:
parent
7aefb9f4d9
commit
e39ad8badc
@ -257,7 +257,7 @@ struct evaluator<PlainObjectBase<Derived>> : evaluator_base<Derived> {
|
|||||||
plainobjectbase_evaluator_data<Scalar, OuterStrideAtCompileTime> m_d;
|
plainobjectbase_evaluator_data<Scalar, OuterStrideAtCompileTime> m_d;
|
||||||
|
|
||||||
private:
|
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();
|
return IsRowMajor ? row * m_d.outerStride() + col : row + col * m_d.outerStride();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user