mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Return const data pointer from TensorRef evaluator.data()
This commit is contained in:
parent
ae07801dd8
commit
73e55525e5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user