mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Const cast scalar pointer in TensorSlicingOp evaluator
This commit is contained in:
parent
14e35855e1
commit
71070a1e84
@ -695,7 +695,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
|
||||
}
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Eigen::internal::traits<XprType>::PointerType data() const {
|
||||
Scalar* result = m_impl.data();
|
||||
Scalar* result = const_cast<Scalar*>(m_impl.data());
|
||||
if (result) {
|
||||
Index offset = 0;
|
||||
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
|
||||
|
Loading…
Reference in New Issue
Block a user