diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-12-04 10:15:11 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-12-04 10:15:11 -0800 |
commit | 490d26e4c14554716298c3bc4123571bbf92a1b2 (patch) | |
tree | b6b186843212e55e140326bdd0cd902891a0814a /unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | |
parent | d20efc974d53f513668c0138e945171f6f4d85e8 (diff) |
Use integers instead of std::size_t to encode the number of dimensions in the Tensor class since most of the code currently already use integers.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorBase.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h index 5ec1deaf8..d1ce3d0ed 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h @@ -638,8 +638,8 @@ class TensorBase<Derived, ReadOnlyAccessors> } protected: - template <typename Scalar, std::size_t NumIndices, int Options, typename IndexType> friend class Tensor; - template <typename Scalar, typename Dimensions, int Option, typename IndexTypes> friend class TensorFixedSize; + template <typename Scalar, int NumIndices, int Options, typename IndexType> friend class Tensor; + template <typename Scalar, typename Dimensions, int Option, typename IndexTypes> friend class TensorFixedSize; template <typename OtherDerived, int AccessLevel> friend class TensorBase; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Derived& derived() const { return *static_cast<const Derived*>(this); } @@ -655,7 +655,7 @@ class TensorBase<Derived, WriteAccessors> : public TensorBase<Derived, ReadOnlyA typedef typename internal::packet_traits<Scalar>::type PacketReturnType; static const int NumDimensions = DerivedTraits::NumDimensions; - template <typename Scalar, std::size_t NumIndices, int Options, typename IndexType> friend class Tensor; + template <typename Scalar, int NumIndices, int Options, typename IndexType> friend class Tensor; template <typename Scalar, typename Dimensions, int Option, typename IndexTypes> friend class TensorFixedSize; template <typename OtherDerived, int AccessLevel> friend class TensorBase; |