mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Turned Eigen::array::size into a function to make the code compatible with std::array
This commit is contained in:
parent
109005c6c9
commit
28b36632ec
@ -23,7 +23,7 @@ template <typename T, size_t n> class array {
|
|||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
EIGEN_STRONG_INLINE const T& operator[] (size_t index) const { return values[index]; }
|
EIGEN_STRONG_INLINE const T& operator[] (size_t index) const { return values[index]; }
|
||||||
|
|
||||||
static const std::size_t size = n;
|
static const std::size_t size() { return n; }
|
||||||
|
|
||||||
T values[n];
|
T values[n];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user