10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_FORWARD_DECLARATIONS_H 11 #define EIGEN_CXX11_TENSOR_TENSOR_FORWARD_DECLARATIONS_H 21 template<
typename T>
struct MakePointer {
23 typedef const T* ConstType;
27 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T* constCast(
const T* data) {
28 return const_cast<T*
>(data);
37 template<
typename T,
typename device>
struct StorageMemory: MakePointer <T> {};
40 template<
typename A,
typename B>
struct Pointer_type_promotion {
41 static const bool val=
false;
43 template<
typename A>
struct Pointer_type_promotion<A, A> {
44 static const bool val =
true;
46 template<
typename A,
typename B>
struct TypeConversion {
52 template<
typename PlainObjectType,
int Options_ = Unaligned,
template <
class>
class MakePointer_ = MakePointer>
class TensorMap;
53 template<
typename Scalar_,
int NumIndices_,
int Options_ = 0,
typename IndexType = DenseIndex>
class Tensor;
54 template<
typename Scalar_,
typename Dimensions,
int Options_ = 0,
typename IndexType = DenseIndex>
class TensorFixedSize;
56 template<
typename Derived,
int AccessLevel>
class TensorBase;
58 template<
typename NullaryOp,
typename PlainObjectType>
class TensorCwiseNullaryOp;
59 template<
typename UnaryOp,
typename XprType>
class TensorCwiseUnaryOp;
60 template<
typename BinaryOp,
typename LeftXprType,
typename RightXprType>
class TensorCwiseBinaryOp;
61 template<
typename TernaryOp,
typename Arg1XprType,
typename Arg2XprType,
typename Arg3XprType>
class TensorCwiseTernaryOp;
62 template<
typename IfXprType,
typename ThenXprType,
typename ElseXprType>
class TensorSelectOp;
63 template<
typename Op,
typename Dims,
typename XprType,
template <
class>
class MakePointer_ = MakePointer >
class TensorReductionOp;
64 template<
typename XprType>
class TensorIndexTupleOp;
65 template<
typename ReduceOp,
typename Dims,
typename XprType>
class TensorTupleReducerOp;
67 template<
typename Dimensions,
typename LeftXprType,
typename RightXprType,
typename OutputKernelType>
class TensorContractionOp;
69 template<
typename Dimensions,
typename InputXprType,
typename KernelXprType>
class TensorConvolutionOp;
70 template<
typename FFT,
typename XprType,
int FFTDataType,
int FFTDirection>
class TensorFFTOp;
71 template<
typename PatchDim,
typename XprType>
class TensorPatchOp;
72 template<DenseIndex Rows, DenseIndex Cols,
typename XprType>
class TensorImagePatchOp;
73 template<DenseIndex Planes, DenseIndex Rows, DenseIndex Cols,
typename XprType>
class TensorVolumePatchOp;
74 template<
typename Broadcast,
typename XprType>
class TensorBroadcastingOp;
75 template<DenseIndex DimId,
typename XprType>
class TensorChippingOp;
76 template<
typename NewDimensions,
typename XprType>
class TensorReshapingOp;
77 template<
typename XprType>
class TensorLayoutSwapOp;
78 template<
typename StartIndices,
typename Sizes,
typename XprType>
class TensorSlicingOp;
79 template<
typename ReverseDimensions,
typename XprType>
class TensorReverseOp;
80 template<
typename PaddingDimensions,
typename XprType>
class TensorPaddingOp;
81 template<
typename Shuffle,
typename XprType>
class TensorShufflingOp;
82 template<
typename Str
ides,
typename XprType>
class TensorStridingOp;
83 template<
typename StartIndices,
typename StopIndices,
typename Str
ides,
typename XprType>
class TensorStridingSlicingOp;
84 template<
typename Str
ides,
typename XprType>
class TensorInflationOp;
86 template<
typename LeftXprType,
typename RightXprType>
class TensorAssignOp;
87 template<
typename Op,
typename XprType>
class TensorScanOp;
88 template<
typename Dims,
typename XprType>
class TensorTraceOp;
91 template<
typename CustomBinaryFunc,
typename LhsXprType,
typename RhsXprType>
class TensorCustomBinaryOp;
93 template<
typename XprType,
template <
class>
class MakePointer_ = MakePointer>
class TensorEvalToOp;
94 template<
typename XprType>
class TensorForcedEvalOp;
96 template<
typename ExpressionType,
typename DeviceType>
class TensorDevice;
97 template<
typename ExpressionType,
typename DeviceType,
typename DoneCallback>
class TensorAsyncDevice;
100 struct NoOpOutputKernel;
102 struct DefaultDevice;
103 struct ThreadPoolDevice;
107 #ifdef EIGEN_USE_SYCL 109 template <
typename T>
struct MakeSYCLPointer {
110 typedef Eigen::TensorSycl::internal::RangeAccess<cl::sycl::access::mode::read_write, T> Type;
113 template <
typename T>
114 EIGEN_STRONG_INLINE
const Eigen::TensorSycl::internal::RangeAccess<cl::sycl::access::mode::read_write, T>&
115 constCast(
const Eigen::TensorSycl::internal::RangeAccess<cl::sycl::access::mode::read_write, T>& data) {
119 template <
typename T>
120 struct StorageMemory<T, SyclDevice> : MakeSYCLPointer<T> {};
121 template <
typename T>
122 struct StorageMemory<T, const SyclDevice> : StorageMemory<T, SyclDevice> {};
124 namespace TensorSycl {
126 template <
typename Evaluator,
typename Op>
class GenericNondeterministicReducer;
146 template <
typename Device,
typename Expression>
147 struct IsVectorizable {
151 template <
typename Expression>
152 struct IsVectorizable<GpuDevice, Expression> {
158 enum TiledEvaluation {
163 template <
typename Device,
typename Expression>
168 static const bool BlockAccess =
172 static const TiledEvaluation value =
173 BlockAccess ? TiledEvaluation::On : TiledEvaluation::Off;
176 template <
typename Expression,
typename Device,
177 bool Vectorizable = IsVectorizable<Device, Expression>::value,
178 TiledEvaluation Tiling = IsTileable<Device, Expression>::value>
181 template <
typename Expression,
typename Device,
typename DoneCallback,
182 bool Vectorizable = IsVectorizable<Device, Expression>::value,
183 TiledEvaluation Tiling = IsTileable<Device, Expression>::value>
184 class TensorAsyncExecutor;
191 #endif // EIGEN_CXX11_TENSOR_TENSOR_FORWARD_DECLARATIONS_H Tensor custom class.
Definition: TensorCustomOp.h:53
Tensor custom class.
Definition: TensorCustomOp.h:219
Tensor generator class.
Definition: TensorForwardDeclarations.h:85
Namespace containing all symbols from the Eigen library.
A cost model used to limit the number of threads used for evaluating tensor expression.
Definition: TensorEvaluator.h:28
Pseudo expression providing an operator = that will evaluate its argument on the specified computing ...
Definition: TensorDevice.h:27
A tensor expression mapping an existing array of data.
Definition: TensorForwardDeclarations.h:52
Tensor conversion class. This class makes it possible to vectorize type casting operations when the n...
Definition: TensorConversion.h:176
The fixed sized version of the tensor class.
Definition: TensorFixedSize.h:27
The tensor base class.
Definition: TensorForwardDeclarations.h:56
Pseudo expression providing an operator = that will evaluate its argument asynchronously on the speci...
Definition: TensorDevice.h:83
The tensor executor class.
A reference to a tensor expression The expression will be evaluated lazily (as much as possible)...
Definition: TensorForwardDeclarations.h:55
Tensor concatenation class.
Definition: TensorConcatenation.h:60
The tensor class.
Definition: Tensor.h:63