TensorForwardDeclarations.h
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_FORWARD_DECLARATIONS_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_FORWARD_DECLARATIONS_H
12 
13 namespace Eigen {
14 
15 template<typename Scalar_, std::size_t NumIndices_, int Options_ = 0, typename IndexType = DenseIndex> class Tensor;
16 template<typename Scalar_, typename Dimensions, int Options_ = 0, typename IndexType = DenseIndex> class TensorFixedSize;
17 template<typename PlainObjectType, int Options_ = Unaligned> class TensorMap;
18 template<typename PlainObjectType> class TensorRef;
19 template<typename Derived, int AccessLevel = internal::accessors_level<Derived>::value> class TensorBase;
20 
21 template<typename NullaryOp, typename PlainObjectType> class TensorCwiseNullaryOp;
22 template<typename UnaryOp, typename XprType> class TensorCwiseUnaryOp;
23 template<typename BinaryOp, typename LeftXprType, typename RightXprType> class TensorCwiseBinaryOp;
24 template<typename IfXprType, typename ThenXprType, typename ElseXprType> class TensorSelectOp;
25 template<typename Op, typename Dims, typename XprType> class TensorReductionOp;
26 template<typename XprType> class TensorIndexTupleOp;
27 template<typename ReduceOp, typename Dims, typename XprType> class TensorTupleReducerOp;
28 template<typename Axis, typename LeftXprType, typename RightXprType> class TensorConcatenationOp;
29 template<typename Dimensions, typename LeftXprType, typename RightXprType> class TensorContractionOp;
30 template<typename TargetType, typename XprType> class TensorConversionOp;
31 template<typename Dimensions, typename InputXprType, typename KernelXprType> class TensorConvolutionOp;
32 template<typename PatchDim, typename XprType> class TensorPatchOp;
33 template<DenseIndex Rows, DenseIndex Cols, typename XprType> class TensorImagePatchOp;
34 template<DenseIndex Planes, DenseIndex Rows, DenseIndex Cols, typename XprType> class TensorVolumePatchOp;
35 template<typename Broadcast, typename XprType> class TensorBroadcastingOp;
36 template<DenseIndex DimId, typename XprType> class TensorChippingOp;
37 template<typename NewDimensions, typename XprType> class TensorReshapingOp;
38 template<typename XprType> class TensorLayoutSwapOp;
39 template<typename StartIndices, typename Sizes, typename XprType> class TensorSlicingOp;
40 template<typename ReverseDimensions, typename XprType> class TensorReverseOp;
41 template<typename PaddingDimensions, typename XprType> class TensorPaddingOp;
42 template<typename Shuffle, typename XprType> class TensorShufflingOp;
43 template<typename Strides, typename XprType> class TensorStridingOp;
44 template<typename Strides, typename XprType> class TensorInflationOp;
45 template<typename Generator, typename XprType> class TensorGeneratorOp;
46 template<typename LeftXprType, typename RightXprType> class TensorAssignOp;
47 
48 template<typename CustomUnaryFunc, typename XprType> class TensorCustomUnaryOp;
49 template<typename CustomBinaryFunc, typename LhsXprType, typename RhsXprType> class TensorCustomBinaryOp;
50 
51 template<typename XprType> class TensorEvalToOp;
52 template<typename XprType> class TensorForcedEvalOp;
53 
54 template<typename ExpressionType, typename DeviceType> class TensorDevice;
55 template<typename Derived, typename Device> struct TensorEvaluator;
56 
57 struct DefaultDevice;
58 struct ThreadPoolDevice;
59 struct GpuDevice;
60 
61 namespace internal {
62 
63 template <typename Device, typename Expression>
64 struct IsVectorizable {
65  static const bool value = TensorEvaluator<Expression, Device>::PacketAccess;
66 };
67 
68 template <typename Expression>
69 struct IsVectorizable<GpuDevice, Expression> {
70  static const bool value = TensorEvaluator<Expression, GpuDevice>::PacketAccess &&
72 };
73 
74 template <typename Expression, typename Device,
75  bool Vectorizable = IsVectorizable<Device, Expression>::value>
76 class TensorExecutor;
77 
78 } // end namespace internal
79 
80 } // end namespace Eigen
81 
82 #endif // EIGEN_CXX11_TENSOR_TENSOR_FORWARD_DECLARATIONS_H
Tensor custom class.
Definition: TensorCustomOp.h:53
Tensor custom class.
Definition: TensorCustomOp.h:203
Namespace containing all symbols from the Eigen library.
Definition: CXX11Meta.h:13
The tensor evaluator classes.
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:17
Tensor conversion class. This class makes it possible to vectorize type casting operations when the n...
Definition: TensorConversion.h:119
The tensor base class.
Definition: TensorForwardDeclarations.h:19
The tensor executor class.
A reference to a tensor expression The expression will be evaluated lazily (as much as possible)...
Definition: TensorForwardDeclarations.h:18
Tensor concatenation class.
Definition: TensorConcatenation.h:59