10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_LAYOUT_SWAP_H 11 #define EIGEN_CXX11_TENSOR_TENSOR_LAYOUT_SWAP_H 38 template<
typename XprType>
45 typedef typename XprType::Nested
Nested;
52 template<
typename XprType>
58 template<
typename XprType>
68 template<
typename XprType>
94 template<
typename ArgType,
typename Device>
117 : m_impl(op.expression(), device)
119 for(
int i = 0;
i < NumDims; ++
i) {
120 m_dimensions[
i] = m_impl.dimensions()[NumDims-1-
i];
124 #ifdef EIGEN_USE_SYCL 140 return m_impl.evalSubExprsIfNeeded(data);
148 return m_impl.coeff(index);
151 template<
int LoadMode>
154 return m_impl.template packet<LoadMode>(index);
158 return m_impl.costPerCoeff(vectorized);
174 template<
typename ArgType,
typename Device>
205 return this->m_impl.coeffRef(index);
210 this->m_impl.template writePacket<StoreMode>(index,
x);
216 #endif // EIGEN_CXX11_TENSOR_TENSOR_LAYOUT_SWAP_H Eigen::internal::traits< TensorLayoutSwapOp >::Scalar Scalar
XprType::CoeffReturnType CoeffReturnType
#define EIGEN_STRONG_INLINE
DSizes< Index, NumDims > Dimensions
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const
TensorLayoutSwapOp< ArgType > XprType
EIGEN_DEVICE_FUNC const internal::remove_all< typename XprType::Nested >::type & expression() const
EIGEN_DEVICE_FUNC Storage::Type data() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType & coeffRef(Index index)
internal::remove_const< typename XprType::CoeffReturnType >::type CoeffReturnType
Eigen::internal::traits< TensorLayoutSwapOp >::StorageKind StorageKind
traits< XprType > XprTraits
Eigen::internal::traits< TensorLayoutSwapOp >::Index Index
XprTraits::PointerType PointerType
TensorLayoutSwapOp< ArgType > XprType
Namespace containing all symbols from the Eigen library.
A cost model used to limit the number of threads used for evaluating tensor expression.
XprTraits::StorageKind StorageKind
TensorEvaluator< ArgType, Device > m_impl
Eigen::internal::nested< TensorLayoutSwapOp >::type Nested
StorageMemory< CoeffReturnType, Device > Storage
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
remove_reference< Nested >::type _Nested
EIGEN_STRONG_INLINE TensorEvaluator(const XprType &op, const Device &device)
internal::TensorBlockNotImplemented TensorBlock
const TensorLayoutSwapOp< XprType > & type
Generic expression where a coefficient-wise binary operator is applied to two expressions.
internal::TensorBlockNotImplemented TensorBlock
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T * constCast(const T *data)
PacketType< CoeffReturnType, Device >::type PacketReturnType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorLayoutSwapOp(const XprType &expr)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
const TensorEvaluator< ArgType, Device > & impl() const
TensorBase< TensorLayoutSwapOp< XprType >, WriteAccessors > Base
EIGEN_STRONG_INLINE TensorEvaluator(const XprType &op, const Device &device)
TensorEvaluator< const TensorLayoutSwapOp< ArgType >, Device > Base
#define EIGEN_DEVICE_FUNC
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
PacketType< CoeffReturnType, Device >::type PacketReturnType
Eigen::NumTraits< Scalar >::Real RealScalar
XprType::CoeffReturnType CoeffReturnType
#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS(Derived)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writePacket(Index index, const PacketReturnType &x)
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType data)
Generic expression where a coefficient-wise unary operator is applied to an expression.
TensorLayoutSwapOp< XprType > type
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Storage::Type EvaluatorPointerType
EIGEN_STRONG_INLINE void cleanup()