diff options
author | Mehdi Goli <mehdi.goli@codeplay.com> | 2016-11-29 15:30:42 +0000 |
---|---|---|
committer | Mehdi Goli <mehdi.goli@codeplay.com> | 2016-11-29 15:30:42 +0000 |
commit | 577ce78085d2e09675abb5976ab3026235de8eec (patch) | |
tree | b88f8db6290c625fd35a72594e816b8ff4094e15 /unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h | |
parent | 02080e2b673c17302872a05e0fac8c20ac756b44 (diff) |
Adding TensorShuffling backend for sycl; adding TensorReshaping backend for sycl; cleaning up the sycl backend.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h index 5a2df7807..bb042ade2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorSyclPlaceHolderExpr.h @@ -180,6 +180,18 @@ SLICEOPEXPR(const) SLICEOPEXPR() #undef SLICEOPEXPR +#define RESHAPEANDSHUFFLEOPPLH(OPEXP , CVQual)\ +template<typename Param, typename XprType, size_t N>\ +struct PlaceHolderExpression<CVQual OPEXP<Param, XprType>, N > {\ + typedef CVQual OPEXP<Param, typename CalculateIndex<N, XprType>::ArgType> Type;\ +}; + +RESHAPEANDSHUFFLEOPPLH(TensorReshapingOp, const) +RESHAPEANDSHUFFLEOPPLH(TensorReshapingOp, ) + +RESHAPEANDSHUFFLEOPPLH(TensorShufflingOp, const) +RESHAPEANDSHUFFLEOPPLH(TensorShufflingOp,) +#undef RESHAPEANDSHUFFLEOPPLH /// template deduction for \ref PlaceHolderExpression struct template <typename Expr> |