10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_TRAITS_H
19 template <
typename Scalar,
int Options>
25 #if EIGEN_MAX_STATIC_ALIGN_BYTES > 0
44 template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
45 struct traits<
Tensor<Scalar_, NumIndices_, Options_, IndexType_> > {
49 static constexpr
int NumDimensions = NumIndices_;
62 template <
typename Scalar_,
typename Dimensions,
int Options_,
typename IndexType_>
80 template <
typename PlainObjectType,
int Options_,
template <
class>
class MakePointer_>
86 static constexpr
int NumDimensions = BaseTraits::NumDimensions;
87 static constexpr
int Layout = BaseTraits::Layout;
88 enum { Options = Options_,
Flags = BaseTraits::Flags };
98 template <
typename PlainObjectType>
104 static constexpr
int NumDimensions = BaseTraits::NumDimensions;
105 static constexpr
int Layout = BaseTraits::Layout;
106 enum { Options = BaseTraits::Options,
Flags = BaseTraits::Flags };
110 template <
typename Scalar_,
int NumIndices_,
int Options,
typename IndexType_>
115 template <
typename Scalar_,
int NumIndices_,
int Options,
typename IndexType_>
120 template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
125 template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
130 template <
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
135 template <
typename PlainObjectType,
int Options,
template <
class>
class MakePointer>
140 template <
typename PlainObjectType>
145 template <
typename PlainObjectType>
151 template <
typename T,
int n = 1,
typename PlainObject =
void>
156 template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
161 template <
typename Scalar_,
int NumIndices_,
int Options_,
typename IndexType_>
162 struct nested<const
Tensor<Scalar_, NumIndices_, Options_, IndexType_> > {
166 template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
171 template <
typename Scalar_,
typename Dimensions,
int Options,
typename IndexType_>
176 template <
typename PlainObjectType>
181 template <
typename PlainObjectType>
#define EIGEN_DEVICE_REF
Definition: TensorMacros.h:34
SCALAR Scalar
Definition: bench_gemm.cpp:45
The fixed sized version of the tensor class.
Definition: TensorFixedSize.h:30
A tensor expression mapping an existing array of data.
Definition: TensorMap.h:33
A reference to a tensor expression The expression will be evaluated lazily (as much as possible).
Definition: TensorRef.h:114
The tensor class.
Definition: Tensor.h:68
Definition: TensorTraits.h:20
@ ret
Definition: TensorTraits.h:41
@ is_dynamic_size_storage
Definition: TensorTraits.h:22
@ is_aligned
Definition: TensorTraits.h:24
@ packet_access_bit
Definition: TensorTraits.h:37
@ ColMajor
Definition: Constants.h:318
@ DontAlign
Definition: Constants.h:324
@ RowMajor
Definition: Constants.h:320
const unsigned int PacketAccessBit
Definition: Constants.h:97
const unsigned int LvalueBit
Definition: Constants.h:148
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
PaddingType
Definition: TensorTraits.h:227
@ PADDING_VALID
Definition: TensorTraits.h:227
@ PADDING_SAME
Definition: TensorTraits.h:227
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
Extend namespace for flags.
Definition: fsi_chan_precond_driver.cc:56
Definition: Eigen_Colamd.h:49
Type
Type of JSON value.
Definition: rapidjson.h:513
Definition: Constants.h:519
Definition: TensorForwardDeclarations.h:25
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:122
const TensorMap< PlainObjectType, Options, MakePointer > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:132
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:142
const Tensor< Scalar_, NumIndices_, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:112
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:127
const TensorMap< PlainObjectType, Options, MakePointer > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:137
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:147
const Tensor< Scalar_, NumIndices_, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:117
Definition: XprHelper.h:427
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:168
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:178
const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:158
const TensorFixedSize< Scalar_, Dimensions, Options, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:173
const TensorRef< PlainObjectType > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:183
const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > EIGEN_DEVICE_REF type
Definition: TensorTraits.h:163
Definition: TensorTraits.h:152
ref_selector< T >::type type
Definition: TensorTraits.h:153
Definition: GenericPacketMath.h:108
std::conditional_t< bool(traits< T >::Flags &NestByRefBit), T const &, const T > type
Definition: XprHelper.h:507
T * Type
Definition: TensorTraits.h:75
Scalar_ Scalar
Definition: TensorTraits.h:64
Dense StorageKind
Definition: TensorTraits.h:65
MakePointer< Scalar >::Type PointerType
Definition: TensorTraits.h:77
IndexType_ Index
Definition: TensorTraits.h:66
MakePointer_< T > MakePointerT
Definition: TensorTraits.h:92
MakePointerT::Type Type
Definition: TensorTraits.h:93
traits< PlainObjectType > BaseTraits
Definition: TensorTraits.h:82
BaseTraits::Scalar Scalar
Definition: TensorTraits.h:83
BaseTraits::StorageKind StorageKind
Definition: TensorTraits.h:84
BaseTraits::Index Index
Definition: TensorTraits.h:85
MakePointer< Scalar >::Type PointerType
Definition: TensorTraits.h:95
BaseTraits::StorageKind StorageKind
Definition: TensorTraits.h:102
traits< PlainObjectType > BaseTraits
Definition: TensorTraits.h:100
BaseTraits::Index Index
Definition: TensorTraits.h:103
BaseTraits::PointerType PointerType
Definition: TensorTraits.h:107
BaseTraits::Scalar Scalar
Definition: TensorTraits.h:101
MakePointer< Scalar >::Type PointerType
Definition: TensorTraits.h:59
IndexType_ Index
Definition: TensorTraits.h:48
Scalar_ Scalar
Definition: TensorTraits.h:46
Dense StorageKind
Definition: TensorTraits.h:47
T * Type
Definition: TensorTraits.h:57
Definition: ForwardDeclarations.h:21