10#ifndef EIGEN_CXX11_TENSOR_TENSOR_FIXED_SIZE_H
11#define EIGEN_CXX11_TENSOR_TENSOR_FIXED_SIZE_H
26template<
typename Scalar_,
typename Dimensions_,
int Options_,
typename IndexType>
73 inline const Self&
base()
const {
return *
this; }
75#if EIGEN_HAS_VARIADIC_TEMPLATES
76 template<
typename... IndexTypes>
107#if EIGEN_HAS_VARIADIC_TEMPLATES
108 template<
typename... IndexTypes>
138#if EIGEN_HAS_VARIADIC_TEMPLATES
139 template<
typename... IndexTypes>
198 return coeff(indices);
223#if EIGEN_HAS_VARIADIC_TEMPLATES
224 template<
typename... IndexTypes>
319#if EIGEN_HAS_RVALUE_REFERENCES
326 template<
typename OtherDerived>
331 Assign assign(*
this, other.
derived());
334 template<
typename OtherDerived>
339 Assign assign(*
this, other.
derived());
int n
Definition BiCGSTAB_simple.cpp:1
#define eigen_internal_assert(x)
Definition Macros.h:1043
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
#define eigen_assert(x)
Definition Macros.h:1037
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition StaticAssert.h:127
#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Derived)
Definition TensorMacros.h:84
SCALAR Scalar
Definition bench_gemm.cpp:46
Definition TensorAssign.h:62
The tensor base class.
Definition TensorBase.h:973
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & derived()
Definition TensorBase.h:1169
Scalar CoeffReturnType
Definition TensorBase.h:979
The fixed sized version of the tensor class.
Definition TensorFixedSize.h:28
@ BlockAccess
Definition TensorFixedSize.h:44
@ PreferBlockAccess
Definition TensorFixedSize.h:45
@ RawAccess
Definition TensorFixedSize.h:48
@ Layout
Definition TensorFixedSize.h:46
@ IsAligned
Definition TensorFixedSize.h:42
@ PacketAccess
Definition TensorFixedSize.h:43
@ CoordAccess
Definition TensorFixedSize.h:47
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize(const TensorBase< OtherDerived, WriteAccessors > &other)
Definition TensorFixedSize.h:336
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index index)
Definition TensorFixedSize.h:125
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
Definition TensorFixedSize.h:66
TensorBase< TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > Base
Definition TensorFixedSize.h:31
Scalar_ Scalar
Definition TensorFixedSize.h:35
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize(const Self &other)
Definition TensorFixedSize.h:314
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(const array< Index, NumIndices > &indices)
Definition TensorFixedSize.h:118
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & coeff(Index index) const
Definition TensorFixedSize.h:93
TensorStorage< Scalar, Dimensions, Options > m_storage
Definition TensorFixedSize.h:59
static const std::size_t NumIndices
Definition TensorFixedSize.h:56
Eigen::internal::nested< Self >::type Nested
Definition TensorFixedSize.h:32
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
Definition TensorFixedSize.h:64
internal::TensorBlockNotImplemented TensorBlock
Definition TensorFixedSize.h:52
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()(Index index)
Definition TensorFixedSize.h:286
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()(Index i0, Index i1) const
Definition TensorFixedSize.h:148
Base::CoeffReturnType CoeffReturnType
Definition TensorFixedSize.h:37
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()(const array< Index, NumIndices > &indices)
Definition TensorFixedSize.h:279
TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > Self
Definition TensorFixedSize.h:30
const Self & base() const
Definition TensorFixedSize.h:73
static const int Options
Definition TensorFixedSize.h:39
Self & base()
Definition TensorFixedSize.h:72
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()()
Definition TensorFixedSize.h:293
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size() const
Definition TensorFixedSize.h:65
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize()
Definition TensorFixedSize.h:308
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank() const
Definition TensorFixedSize.h:62
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()(Index i0, Index i1)
Definition TensorFixedSize.h:233
internal::traits< Self >::Index Index
Definition TensorFixedSize.h:34
Dimensions_ Dimensions
Definition TensorFixedSize.h:55
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(std::size_t n) const
Definition TensorFixedSize.h:63
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()(Index i0, Index i1, Index i2, Index i3) const
Definition TensorFixedSize.h:170
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()(Index i0, Index i1, Index i2)
Definition TensorFixedSize.h:244
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()(const array< Index, NumIndices > &indices) const
Definition TensorFixedSize.h:195
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()() const
Definition TensorFixedSize.h:209
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator[](Index index)
Definition TensorFixedSize.h:300
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize(const TensorBase< OtherDerived, ReadOnlyAccessors > &other)
Definition TensorFixedSize.h:328
internal::traits< Self >::StorageKind StorageKind
Definition TensorFixedSize.h:33
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & coeff() const
Definition TensorFixedSize.h:100
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()(Index i0, Index i1, Index i2) const
Definition TensorFixedSize.h:159
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()(Index i0, Index i1, Index i2, Index i3, Index i4)
Definition TensorFixedSize.h:266
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool checkIndexRange(const array< Index, NumIndices > &) const
Definition TensorFixedSize.h:350
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator[](Index index) const
Definition TensorFixedSize.h:216
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()(Index i0, Index i1, Index i2, Index i3, Index i4) const
Definition TensorFixedSize.h:181
NumTraits< Scalar >::Real RealScalar
Definition TensorFixedSize.h:36
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index linearizedIndex(const array< Index, NumIndices > &indices) const
Definition TensorFixedSize.h:366
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator()(Index index) const
Definition TensorFixedSize.h:202
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef()
Definition TensorFixedSize.h:132
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator()(Index i0, Index i1, Index i2, Index i3)
Definition TensorFixedSize.h:255
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & coeff(const array< Index, NumIndices > &indices) const
Definition TensorFixedSize.h:86
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const
Definition TensorFixedSize.h:67
Definition TensorStorage.h:40
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T * data()
Definition TensorStorage.h:54
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex size() const
Definition TensorStorage.h:66
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const FixedDimensions & dimensions()
Definition TensorStorage.h:59
Definition EmulateArray.h:21
Definition TensorBlock.h:617
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void run(const Expression &expr, const Device &device=Device())
Definition TensorExecutor.h:96
Definition TensorRef.h:81
@ ColMajor
Definition Constants.h:319
@ RowMajor
Definition Constants.h:321
constexpr EIGEN_STRONG_INLINE auto array_zip_and_reduce(array< A, N > a, array< B, N > b) -> decltype(h_array_zip_and_reduce< Reducer, Op, A, B, N >(a, b, typename gen_numeric_list< int, N >::type()))
Definition CXX11Meta.h:434
constexpr EIGEN_STRONG_INLINE auto array_apply_and_reduce(array< A, N > a) -> decltype(h_array_apply_and_reduce< Reducer, Op, A, N >(a, typename gen_numeric_list< int, N >::type()))
Definition CXX11Meta.h:462
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Definition TensorDeviceDefault.h:17
Definition CXX11Meta.h:315
Definition CXX11Meta.h:306
Definition CXX11Meta.h:301
Definition GenericPacketMath.h:107
Definition ForwardDeclarations.h:17