10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H 11 #define EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H 17 template<
typename Scalar,
int Options>
21 is_dynamic_size_storage = 1,
26 #if EIGEN_MAX_STATIC_ALIGN_BYTES>0 27 (!is_dynamic_size_storage)
32 #
if EIGEN_MAX_ALIGN_BYTES>0
33 is_dynamic_size_storage
43 enum { ret = packet_access_bit };
47 template<
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
50 typedef Scalar_ Scalar;
52 typedef IndexType_
Index;
53 static const int NumDimensions = NumIndices_;
65 template<
typename Scalar_,
typename Dimensions,
int Options_,
typename IndexType_>
68 typedef Scalar_ Scalar;
70 typedef IndexType_
Index;
83 template<
typename PlainObjectType,
int Options_,
template <
class>
class MakePointer_>
85 :
public traits<PlainObjectType>
88 typedef typename BaseTraits::Scalar Scalar;
89 typedef typename BaseTraits::StorageKind StorageKind;
90 typedef typename BaseTraits::Index
Index;
91 static const int NumDimensions = BaseTraits::NumDimensions;
92 static const int Layout = BaseTraits::Layout;
95 Flags = BaseTraits::Flags
99 typedef MakePointer_<T> MakePointerT;
100 typedef typename MakePointerT::Type Type;
104 template<
typename PlainObjectType>
106 :
public traits<PlainObjectType>
109 typedef typename BaseTraits::Scalar Scalar;
110 typedef typename BaseTraits::StorageKind StorageKind;
111 typedef typename BaseTraits::Index
Index;
112 static const int NumDimensions = BaseTraits::NumDimensions;
113 static const int Layout = BaseTraits::Layout;
115 Options = BaseTraits::Options,
116 Flags = BaseTraits::Flags
121 template<
typename _Scalar,
int NumIndices_,
int Options,
typename IndexType_>
127 template<
typename _Scalar,
int NumIndices_,
int Options,
typename IndexType_>
133 template<
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
139 template<
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
145 template<
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
151 template<
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
157 template<
typename PlainObjectType>
163 template<
typename PlainObjectType>
170 template<
typename T,
int n=1,
typename PlainObject =
void>
struct nested 175 template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
181 template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
182 struct nested<const
Tensor<Scalar_, NumIndices_, Options_, IndexType_> >
187 template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
193 template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
200 template <
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
206 template <
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
212 template <
typename PlainObjectType>
218 template <
typename PlainObjectType>
272 #endif // EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H Storage order is column major (see TopicStorageOrders).
Definition: Constants.h:320
Don't require alignment for the matrix itself (the array of coefficients, if dynamically allocated...
Definition: Constants.h:326
const unsigned int LvalueBit
Means the expression has a coeffRef() method, i.e.
Definition: Constants.h:139
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
Definition: TensorTraits.h:18
const unsigned int PacketAccessBit
Short version: means the expression might be vectorized.
Definition: Constants.h:89
Definition: GenericPacketMath.h:96
template <class> class MakePointer_ is added to convert the host pointer to the device pointer...
Definition: TensorForwardDeclarations.h:25
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
The fixed sized version of the tensor class.
Definition: TensorFixedSize.h:27
Definition: BandTriangularSolver.h:13
Definition: TensorForwardDeclarations.h:21
Storage order is row major (see TopicStorageOrders).
Definition: Constants.h:322
Definition: TensorTraits.h:170
The type used to identify a dense storage.
Definition: Constants.h:491
A reference to a tensor expression The expression will be evaluated lazily (as much as possible)...
Definition: TensorForwardDeclarations.h:28
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
Definition: ForwardDeclarations.h:17
Definition: XprHelper.h:312
Definition: EmulateArray.h:203
The tensor class.
Definition: Tensor.h:63