compbio
Public Types | Public Member Functions | Static Public Attributes | List of all members
Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ > Class Template Reference

template <class> class MakePointer_ is added to convert the host pointer to the device pointer. More...

#include <TensorMap.h>

Inheritance diagram for Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >:
Eigen::TensorBase< TensorMap< PlainObjectType, Options_, MakePointer_ > >

Public Types

enum  { IsAligned = ((int(Options_)&Aligned)==Aligned), Layout = PlainObjectType::Layout, CoordAccess = true, RawAccess = true }
 
typedef TensorMap< PlainObjectType, Options_, MakePointer_ > Self
 
typedef PlainObjectType::Base Base
 
typedef Eigen::internal::nested< Self >::type Nested
 
typedef internal::traits< PlainObjectType >::StorageKind StorageKind
 
typedef internal::traits< PlainObjectType >::Index Index
 
typedef internal::traits< PlainObjectType >::Scalar Scalar
 
typedef NumTraits< Scalar >::Real RealScalar
 
typedef Base::CoeffReturnType CoeffReturnType
 
typedef MakePointer_< Scalar >::Type PointerType
 
typedef PointerType PointerArgType
 
typedef PlainObjectType::Dimensions Dimensions
 
- Public Types inherited from Eigen::TensorBase< TensorMap< PlainObjectType, Options_, MakePointer_ > >
typedef internal::traits< TensorMap< PlainObjectType, Options_, MakePointer_ > > DerivedTraits
 
typedef DerivedTraits::Scalar Scalar
 
typedef DerivedTraits::Index Index
 
typedef Scalar CoeffReturnType
 

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, Index firstDimension)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, Index dim1, Index dim2)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, Index dim1, Index dim2, Index dim3)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, Index dim1, Index dim2, Index dim3, Index dim4)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, Index dim1, Index dim2, Index dim3, Index dim4, Index dim5)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, const array< Index, NumIndices > &dimensions)
 
template<typename Dimensions >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PointerArgType dataPtr, const Dimensions &dimensions)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap (PlainObjectType &tensor)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension (Index n) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PointerType data ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const PointerType data () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() (const array< Index, NumIndices > &indices) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() (Index index) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() (Index i0, Index i1) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() (Index i0, Index i1, Index i2) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() (Index i0, Index i1, Index i2, Index i3) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & operator() (Index i0, Index i1, Index i2, Index i3, Index i4) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() (const array< Index, NumIndices > &indices)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() (Index index)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() (Index i0, Index i1)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() (Index i0, Index i1, Index i2)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() (Index i0, Index i1, Index i2, Index i3)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & operator() (Index i0, Index i1, Index i2, Index i3, Index i4)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Selfoperator= (const Self &other)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Selfoperator= (const OtherDerived &other)
 
- Public Member Functions inherited from Eigen::TensorBase< TensorMap< PlainObjectType, Options_, MakePointer_ > >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & setZero ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & setConstant (const Scalar &val)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & setRandom ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & setRandom ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & operator+= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & operator-= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & operator*= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & operator/= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorLayoutSwapOp< const TensorMap< PlainObjectType, Options_, MakePointer_ > > swap_layout () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorLayoutSwapOp< TensorMap< PlainObjectType, Options_, MakePointer_ > > swap_layout ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorConcatenationOp< const Axis, const TensorMap< PlainObjectType, Options_, MakePointer_ >, const OtherDerived > concatenate (const OtherDerived &other, const Axis &axis) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConcatenationOp< const Axis, TensorMap< PlainObjectType, Options_, MakePointer_ >, OtherDerived > concatenate (const OtherDerived &other, const Axis &axis)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReshapingOp< const NewDimensions, const TensorMap< PlainObjectType, Options_, MakePointer_ > > reshape (const NewDimensions &newDimensions) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReshapingOp< const NewDimensions, TensorMap< PlainObjectType, Options_, MakePointer_ > > reshape (const NewDimensions &newDimensions)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorSlicingOp< const StartIndices, const Sizes, const TensorMap< PlainObjectType, Options_, MakePointer_ > > slice (const StartIndices &startIndices, const Sizes &sizes) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSlicingOp< const StartIndices, const Sizes, TensorMap< PlainObjectType, Options_, MakePointer_ > > slice (const StartIndices &startIndices, const Sizes &sizes)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, const TensorMap< PlainObjectType, Options_, MakePointer_ > > stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, TensorMap< PlainObjectType, Options_, MakePointer_ > > stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< DimId, const TensorMap< PlainObjectType, Options_, MakePointer_ > > chip (const Index offset) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< DimId, TensorMap< PlainObjectType, Options_, MakePointer_ > > chip (const Index offset)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< Dynamic, const TensorMap< PlainObjectType, Options_, MakePointer_ > > chip (const Index offset, const Index dim) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< Dynamic, TensorMap< PlainObjectType, Options_, MakePointer_ > > chip (const Index offset, const Index dim)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReverseOp< const ReverseDimensions, const TensorMap< PlainObjectType, Options_, MakePointer_ > > reverse (const ReverseDimensions &rev) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReverseOp< const ReverseDimensions, TensorMap< PlainObjectType, Options_, MakePointer_ > > reverse (const ReverseDimensions &rev)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorShufflingOp< const Shuffle, const TensorMap< PlainObjectType, Options_, MakePointer_ > > shuffle (const Shuffle &shuffle) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorShufflingOp< const Shuffle, TensorMap< PlainObjectType, Options_, MakePointer_ > > shuffle (const Shuffle &shuffle)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingOp< const Strides, const TensorMap< PlainObjectType, Options_, MakePointer_ > > stride (const Strides &strides) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingOp< const Strides, TensorMap< PlainObjectType, Options_, MakePointer_ > > stride (const Strides &strides)
 
TensorDevice< TensorMap< PlainObjectType, Options_, MakePointer_ >, DeviceType > device (const DeviceType &device)
 

Static Public Attributes

static const int Options = Options_
 
static const Index NumIndices = PlainObjectType::NumIndices
 
- Static Public Attributes inherited from Eigen::TensorBase< TensorMap< PlainObjectType, Options_, MakePointer_ > >
static const int NumDimensions
 

Additional Inherited Members

- Protected Member Functions inherited from Eigen::TensorBase< TensorMap< PlainObjectType, Options_, MakePointer_ > >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap< PlainObjectType, Options_, MakePointer_ > & derived ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorMap< PlainObjectType, Options_, MakePointer_ > & derived () const
 

Detailed Description

template<typename PlainObjectType, int Options_, template< class > class MakePointer_>
class Eigen::TensorMap< PlainObjectType, Options_, MakePointer_ >

template <class> class MakePointer_ is added to convert the host pointer to the device pointer.

A tensor expression mapping an existing array of data.

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*.


The documentation for this class was generated from the following files: