10#ifndef EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H
11#define EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H
17template<
typename Scalar,
int Options>
21 is_dynamic_size_storage = 1,
26#if EIGEN_MAX_STATIC_ALIGN_BYTES>0
27 (!is_dynamic_size_storage)
33 is_dynamic_size_storage
43 enum {
ret = packet_access_bit };
47template<
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
66template<
typename Scalar_,
typename Dimensions,
int Options_,
typename IndexType_>
85template<
typename PlainObjectType,
int Options_,
template <
class>
class MakePointer_>
87 :
public traits<PlainObjectType>
90 typedef typename BaseTraits::Scalar
Scalar;
92 typedef typename BaseTraits::Index
Index;
93 static const int NumDimensions = BaseTraits::NumDimensions;
94 static const int Layout = BaseTraits::Layout;
97 Flags = BaseTraits::Flags
102 typedef typename MakePointerT::Type
Type;
107template<
typename PlainObjectType>
109 :
public traits<PlainObjectType>
112 typedef typename BaseTraits::Scalar
Scalar;
114 typedef typename BaseTraits::Index
Index;
115 static const int NumDimensions = BaseTraits::NumDimensions;
116 static const int Layout = BaseTraits::Layout;
118 Options = BaseTraits::Options,
119 Flags = BaseTraits::Flags
125template<
typename _Scalar,
int NumIndices_,
int Options,
typename IndexType_>
131template<
typename _Scalar,
int NumIndices_,
int Options,
typename IndexType_>
137template<
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
143template<
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
149template<
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
155template<
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
161template<
typename PlainObjectType>
167template<
typename PlainObjectType>
174template<
typename T,
int n=1,
typename PlainObject =
void>
struct nested
179template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
185template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
191template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
197template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
204template <
typename PlainObjectType>
210template <
typename PlainObjectType>
#define EIGEN_DEVICE_REF
Definition TensorMacros.h:50
The fixed sized version of the tensor class.
Definition TensorFixedSize.h:28
A tensor expression mapping an existing array of data.
Definition TensorMap.h:30
A reference to a tensor expression The expression will be evaluated lazily (as much as possible).
Definition TensorRef.h:125
The tensor class.
Definition Tensor.h:64
Definition TensorRef.h:81
Definition TensorTraits.h:19
@ ret
Definition TensorTraits.h:43
@ ColMajor
Definition Constants.h:319
@ DontAlign
Definition Constants.h:325
@ RowMajor
Definition Constants.h:321
const unsigned int PacketAccessBit
Definition Constants.h:94
const unsigned int LvalueBit
Definition Constants.h:144
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
PaddingType
Definition TensorTraits.h:257
@ PADDING_VALID
Definition TensorTraits.h:258
@ PADDING_SAME
Definition TensorTraits.h:259
Definition BandTriangularSolver.h:13
Definition Constants.h:507
Definition TensorForwardDeclarations.h:21
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:140
const TensorMap< PlainObjectType, Options, MakePointer > EIGEN_DEVICE_REF type
Definition TensorTraits.h:152
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition TensorTraits.h:164
const Tensor< _Scalar, NumIndices_, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:128
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:146
const TensorMap< PlainObjectType, Options, MakePointer > EIGEN_DEVICE_REF type
Definition TensorTraits.h:158
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition TensorTraits.h:170
const Tensor< _Scalar, NumIndices_, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:134
Definition XprHelper.h:332
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:194
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition TensorTraits.h:207
const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:182
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:200
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition TensorTraits.h:213
const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > EIGEN_DEVICE_REF type
Definition TensorTraits.h:188
Definition TensorTraits.h:175
ref_selector< T >::type type
Definition TensorTraits.h:176
Definition GenericPacketMath.h:107
T * Type
Definition TensorTraits.h:79
Scalar_ Scalar
Definition TensorTraits.h:69
Dense StorageKind
Definition TensorTraits.h:70
MakePointer< Scalar >::Type PointerType
Definition TensorTraits.h:81
IndexType_ Index
Definition TensorTraits.h:71
MakePointer_< T > MakePointerT
Definition TensorTraits.h:101
MakePointerT::Type Type
Definition TensorTraits.h:102
traits< PlainObjectType > BaseTraits
Definition TensorTraits.h:89
BaseTraits::Scalar Scalar
Definition TensorTraits.h:90
BaseTraits::StorageKind StorageKind
Definition TensorTraits.h:91
BaseTraits::Index Index
Definition TensorTraits.h:92
MakePointer< Scalar >::Type PointerType
Definition TensorTraits.h:104
BaseTraits::StorageKind StorageKind
Definition TensorTraits.h:113
traits< PlainObjectType > BaseTraits
Definition TensorTraits.h:111
BaseTraits::Index Index
Definition TensorTraits.h:114
BaseTraits::PointerType PointerType
Definition TensorTraits.h:121
BaseTraits::Scalar Scalar
Definition TensorTraits.h:112
MakePointer< Scalar >::Type PointerType
Definition TensorTraits.h:62
IndexType_ Index
Definition TensorTraits.h:52
Scalar_ Scalar
Definition TensorTraits.h:50
Dense StorageKind
Definition TensorTraits.h:51
T * Type
Definition TensorTraits.h:60
Definition ForwardDeclarations.h:17