Go to the documentation of this file.
10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H
23 template<
typename XprType>
31 typedef typename XprType::Nested
Nested;
33 static const int NumDimensions = XprTraits::NumDimensions;
34 static const int Layout = XprTraits::Layout;
42 template<
typename XprType>
48 template<
typename XprType>
58 template<
typename XprType>
81 template <
typename Device,
typename CoeffReturnType>
83 template <
typename StorageType>
87 for (
Index i = 0;
i < numValues; ++
i)
new (m_buffer +
i) CoeffReturnType();
95 template <
typename CoeffReturnType>
97 template <
typename StorageType>
103 template<
typename ArgType_,
typename Device>
139 : m_impl(op.expression(), device), m_op(op.expression()),
152 EvalTo evalToTmp(
m_device.get(m_buffer), m_op);
163 #ifdef EIGEN_USE_THREADS
164 template <
typename EvalSubExprsCallback>
172 EvalTo evalToTmp(
m_device.get(m_buffer), m_op);
174 auto on_done = std::bind([](EvalSubExprsCallback done_) { done_(
true); },
176 internal::TensorAsyncExecutor<
181 runAsync(evalToTmp,
m_device, std::move(on_done));
192 return m_buffer[index];
195 template<
int LoadMode>
198 return internal::ploadt<PacketReturnType, LoadMode>(m_buffer + index);
208 bool =
false)
const {
209 assert(m_buffer !=
NULL);
220 #ifdef EIGEN_USE_SYCL
237 #endif // EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H
PacketType< CoeffReturnType, Device >::type PacketReturnType
#define EIGEN_DEVICE_FUNC
Namespace containing all symbols from the Eigen library.
static EIGEN_STRONG_INLINE TensorMaterializedBlock materialize(const Scalar *data, const DataDimensions &data_dims, TensorBlockDesc &desc, TensorBlockScratch &scratch)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorBlock block(TensorBlockDesc &desc, TensorBlockScratch &scratch, bool=false) const
Eigen::internal::traits< TensorForcedEvalOp >::StorageKind StorageKind
XprType::CoeffReturnType CoeffReturnType
Generic expression where a coefficient-wise binary operator is applied to two expressions.
internal::TensorMaterializedBlock< CoeffReturnType, NumDims, Layout, Index > TensorBlock
internal::TensorMaterializedBlock< ScalarNoConst, NumCoords, Layout, Index > TensorBlock
EIGEN_STRONG_INLINE void cleanup()
static const TiledEvaluation value
EvaluatorPointerType m_buffer
TensorEvaluator< ArgType, Device >::Dimensions Dimensions
const typedef TensorForcedEvalOp< XprType > & type
Eigen::internal::nested< TensorForcedEvalOp >::type Nested
static const int PacketSize
internal::TensorBlockScratchAllocator< Device > TensorBlockScratch
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(Index numValues, StorageType m_buffer)
Eigen::internal::traits< XprType >::PointerType TensorPointerType
TensorEvaluator< ArgType, Device > m_impl
Storage::Type EvaluatorPointerType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorForcedEvalOp(const XprType &expr)
TensorForcedEvalOp< ArgType > XprType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::TensorBlockResourceRequirements getResourceRequirements() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
internal::remove_const< typename XprType::CoeffReturnType >::type CoeffReturnType
traits< XprType >::StorageKind StorageKind
internal::TensorBlockDescriptor< NumDims, Index > TensorBlockDesc
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
#define EIGEN_STRONG_INLINE
const EIGEN_DEVICE_FUNC internal::remove_all< typename XprType::Nested >::type & expression() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const
traits< XprType > XprTraits
const Device EIGEN_DEVICE_REF m_device
Eigen::NumTraits< Scalar >::Real RealScalar
const Device EIGEN_DEVICE_REF m_device
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t array_prod(const Sizes< Indices... > &)
TensorEvaluator(const XprType &op, const Device &device)
TensorForcedEvalOp< XprType > type
remove_reference< Nested >::type _Nested
XprTraits::PointerType PointerType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(Index, StorageType)
Eigen::internal::traits< TensorForcedEvalOp >::Index Index
Storage::Type EvaluatorPointerType
const typedef internal::remove_all< ArgType_ >::type ArgType
Eigen::internal::traits< TensorForcedEvalOp >::Scalar Scalar
A cost model used to limit the number of threads used for evaluating tensor expression.
Derived::Scalar CoeffReturnType
traits< XprType >::Index Index
StorageMemory< CoeffReturnType, Device > Storage
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EvaluatorPointerType data() const
const EIGEN_DEVICE_FUNC Dimensions & dimensions() const
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorBlockResourceRequirements any()
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:06:00