diff options
author | Eugene Zhulenev <eugene.zhulenev@gmail.com> | 2019-12-18 23:19:36 +0000 |
---|---|---|
committer | Eugene Zhulenev <eugene.zhulenev@gmail.com> | 2019-12-18 23:19:36 +0000 |
commit | 73e55525e50d76874fc3342623bed73490407392 (patch) | |
tree | f3c181e19388df86d586019332928cbb4e568c09 /unsupported/Eigen/CXX11/src/Tensor/TensorRef.h | |
parent | ae07801dd8d295657f28b006e1e4999edf835052 (diff) |
Return const data pointer from TensorRef evaluator.data()
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorRef.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorRef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h index 4c6420586..030d19844 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h @@ -408,7 +408,7 @@ struct TensorEvaluator<const TensorRef<Derived>, Device> return m_ref.coeffRef(index); } - EIGEN_DEVICE_FUNC Scalar* data() const { return m_ref.data(); } + EIGEN_DEVICE_FUNC const Scalar* data() const { return m_ref.data(); } protected: TensorRef<Derived> m_ref; |