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