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/TensorTraits.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/TensorTraits.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h b/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h index 8f1c02ea4..7a9568b36 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h @@ -44,7 +44,7 @@ class compute_tensor_flags }; -template<typename Scalar_, std::size_t NumIndices_, int Options_, typename IndexType_> +template<typename Scalar_, int NumIndices_, int Options_, typename IndexType_> struct traits<Tensor<Scalar_, NumIndices_, Options_, IndexType_> > { typedef Scalar_ Scalar; @@ -107,13 +107,13 @@ struct traits<TensorRef<PlainObjectType> > }; -template<typename _Scalar, std::size_t NumIndices_, int Options, typename IndexType_> +template<typename _Scalar, int NumIndices_, int Options, typename IndexType_> struct eval<Tensor<_Scalar, NumIndices_, Options, IndexType_>, Eigen::Dense> { typedef const Tensor<_Scalar, NumIndices_, Options, IndexType_>& type; }; -template<typename _Scalar, std::size_t NumIndices_, int Options, typename IndexType_> +template<typename _Scalar, int NumIndices_, int Options, typename IndexType_> struct eval<const Tensor<_Scalar, NumIndices_, Options, IndexType_>, Eigen::Dense> { typedef const Tensor<_Scalar, NumIndices_, Options, IndexType_>& type; @@ -161,13 +161,13 @@ template<typename T, int n=1, typename PlainObject = void> struct nested typedef typename ref_selector<T>::type type; }; -template <typename Scalar_, std::size_t NumIndices_, int Options_, typename IndexType_> +template <typename Scalar_, int NumIndices_, int Options_, typename IndexType_> struct nested<Tensor<Scalar_, NumIndices_, Options_, IndexType_> > { typedef const Tensor<Scalar_, NumIndices_, Options_, IndexType_>& type; }; -template <typename Scalar_, std::size_t NumIndices_, int Options_, typename IndexType_> +template <typename Scalar_, int NumIndices_, int Options_, typename IndexType_> struct nested<const Tensor<Scalar_, NumIndices_, Options_, IndexType_> > { typedef const Tensor<Scalar_, NumIndices_, Options_, IndexType_>& type; |