diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-07-16 09:04:05 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-07-16 09:04:05 -0700 |
commit | 05787f83679a640df93a26ebf5eb398e52045de9 (patch) | |
tree | c38086a77b2e87750a67c358b74b9adf3e1e3f37 /unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | |
parent | b900fe47d5cc435915c8348fa1ffb6ac339c0f50 (diff) |
Added support for tensor inflation.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorBase.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h index ca712f9c5..71f69b568 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h @@ -471,6 +471,11 @@ class TensorBase<Derived, ReadOnlyAccessors> stride(const Strides& strides) const { return TensorStridingOp<const Strides, const Derived>(derived(), strides); } + template <typename Strides> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE + const TensorInflationOp<const Strides, const Derived> + inflate(const Strides& strides) const { + return TensorInflationOp<const Strides, const Derived>(derived(), strides); + } // Support for custom unary and binary operations template <typename CustomUnaryFunc> |