A tensor expression mapping an existing array of data. More...
Inheritance diagram for Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >:Public Types | |
| enum | { IsAligned , CoordAccess , RawAccess } |
| typedef TensorBase< TensorMap< PlainObjectType, Options_, MakePointer_ > > | Base |
| typedef PlainObjectType::Base::CoeffReturnType | CoeffReturnType |
| typedef PlainObjectType::Dimensions | Dimensions |
| typedef internal::traits< PlainObjectType >::Index | Index |
| typedef Eigen::internal::nested< Self >::type | Nested |
| typedef MakePointer_< Scalar >::ConstType | PointerConstType |
| typedef MakePointer_< Scalar >::Type | PointerType |
| typedef NumTraits< Scalar >::Real | RealScalar |
| typedef internal::traits< PlainObjectType >::Scalar | Scalar |
| typedef TensorMap< PlainObjectType, Options_, MakePointer_ > | Self |
| typedef internal::traits< PlainObjectType >::StorageKind | StorageKind |
| typedef std::conditional_t< bool(internal::is_lvalue< PlainObjectType >::value), PointerType, PointerConstType > | StoragePointerType |
| typedef std::conditional_t< bool(internal::is_lvalue< PlainObjectType >::value), Scalar &, const Scalar & > | StorageRefType |
Public Member Functions | |
| StoragePointerType | data () |
| StoragePointerType | data () const |
| Index | dimension (Index n) const |
| const Dimensions & | dimensions () const |
| StorageRefType | operator() () |
| StorageRefType | operator() () const |
| StorageRefType | operator() (const array< Index, NumIndices > &indices) |
| StorageRefType | operator() (const array< Index, NumIndices > &indices) const |
| template<typename... IndexTypes> | |
| StorageRefType | operator() (Index firstIndex, Index secondIndex, IndexTypes... otherIndices) |
| template<typename... IndexTypes> | |
| StorageRefType | operator() (Index firstIndex, Index secondIndex, IndexTypes... otherIndices) const |
| StorageRefType | operator() (Index index) |
| StorageRefType | operator() (Index index) const |
| Index | rank () const |
| Index | size () const |
| TensorMap (PlainObjectType &tensor) | |
| TensorMap (StoragePointerType dataPtr) | |
| TensorMap (StoragePointerType dataPtr, const array< Index, NumIndices > &dimensions) | |
| template<typename Dimensions > | |
| TensorMap (StoragePointerType dataPtr, const Dimensions &dimensions) | |
| template<typename... IndexTypes> | |
| TensorMap (StoragePointerType dataPtr, Index firstDimension, IndexTypes... otherDimensions) | |
Static Public Attributes | |
| static constexpr int | Layout |
| static constexpr Index | NumIndices |
| static constexpr int | Options |
Private Attributes | |
| StoragePointerType | m_data |
| Dimensions | m_dimensions |
A tensor expression mapping an existing array of data.
template <class> class MakePointer_ is added to convert the host pointer to the device pointer. It is added due to the fact that for our device compiler T* is not allowed. If we wanted to use the same Evaluator functions we have to convert that type to our pointer T. This is done through our MakePointer_ class. By default the Type in the MakePointer_<T> is T* . Therefore, by adding the default value, we managed to convert the type and it does not break any existing code as its default value is T*.
Definition at line 31 of file TensorMap.h.
| typedef TensorBase<TensorMap<PlainObjectType, Options_, MakePointer_> > Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::Base |
Definition at line 35 of file TensorMap.h.
| typedef PlainObjectType::Base::CoeffReturnType Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::CoeffReturnType |
Definition at line 45 of file TensorMap.h.
| typedef PlainObjectType::Dimensions Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::Dimensions |
Definition at line 72 of file TensorMap.h.
| typedef internal::traits<PlainObjectType>::Index Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::Index |
Definition at line 42 of file TensorMap.h.
| typedef Eigen::internal::nested<Self>::type Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::Nested |
Definition at line 39 of file TensorMap.h.
| typedef MakePointer_<Scalar>::ConstType Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::PointerConstType |
Definition at line 48 of file TensorMap.h.
| typedef MakePointer_<Scalar>::Type Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::PointerType |
Definition at line 47 of file TensorMap.h.
| typedef NumTraits<Scalar>::Real Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::RealScalar |
Definition at line 44 of file TensorMap.h.
| typedef internal::traits<PlainObjectType>::Scalar Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::Scalar |
Definition at line 43 of file TensorMap.h.
| typedef TensorMap<PlainObjectType, Options_, MakePointer_> Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::Self |
Definition at line 34 of file TensorMap.h.
| typedef internal::traits<PlainObjectType>::StorageKind Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::StorageKind |
Definition at line 41 of file TensorMap.h.
| typedef std::conditional_t< bool(internal::is_lvalue<PlainObjectType>::value), PointerType, PointerConstType > Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::StoragePointerType |
Definition at line 58 of file TensorMap.h.
| typedef std::conditional_t< bool(internal::is_lvalue<PlainObjectType>::value), Scalar&, const Scalar& > Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >::StorageRefType |
Definition at line 67 of file TensorMap.h.
| anonymous enum |
|
inline |
Definition at line 82 of file TensorMap.h.
|
inline |
Definition at line 88 of file TensorMap.h.
|
inline |
Definition at line 93 of file TensorMap.h.
|
inline |
Definition at line 98 of file TensorMap.h.
|
inline |
Definition at line 102 of file TensorMap.h.
|
inline |
Definition at line 115 of file TensorMap.h.
|
inline |
Definition at line 117 of file TensorMap.h.
|
inline |
Definition at line 109 of file TensorMap.h.
|
inline |
Definition at line 111 of file TensorMap.h.
|
inline |
Definition at line 174 of file TensorMap.h.
|
inline |
Definition at line 133 of file TensorMap.h.
|
inline |
Definition at line 161 of file TensorMap.h.
|
inline |
Definition at line 120 of file TensorMap.h.
|
inline |
Definition at line 188 of file TensorMap.h.
|
inline |
Definition at line 147 of file TensorMap.h.
|
inline |
Definition at line 181 of file TensorMap.h.
|
inline |
Definition at line 140 of file TensorMap.h.
|
inline |
Definition at line 107 of file TensorMap.h.
|
inline |
Definition at line 113 of file TensorMap.h.
|
staticconstexpr |
Definition at line 74 of file TensorMap.h.
|
private |
Definition at line 205 of file TensorMap.h.
|
private |
Definition at line 206 of file TensorMap.h.
|
staticconstexpr |
Definition at line 71 of file TensorMap.h.
|
staticconstexpr |
Definition at line 69 of file TensorMap.h.