diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2014-10-16 14:52:50 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2014-10-16 14:52:50 -0700 |
commit | ae697b471c0d3961ebdb633e30046e5fe31fbe24 (patch) | |
tree | 3ab599542dd7a49f0cf033688874c880f5e5305a /unsupported/Eigen/CXX11/src/Tensor/TensorMap.h | |
parent | 94e47798f4e462b857a00b4ca60c954c71d16605 (diff) |
Silenced a few compilation warnings
Generalized a TensorMap constructor
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorMap.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorMap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h index 2c0d2cd0f..0a8c10ac7 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h @@ -64,7 +64,8 @@ template<typename PlainObjectType, int Options_> class TensorMap : public Tensor } #endif - inline TensorMap(PointerArgType dataPtr, const array<Index, NumIndices>& dimensions) + template <typename Dimensions> + inline TensorMap(PointerArgType dataPtr, const Dimensions& dimensions) : m_data(dataPtr), m_dimensions(dimensions) { } |