Eigen::TensorConversionOp< TargetType, XprType > Class Template Reference

Tensor conversion class. This class makes it possible to vectorize type casting operations when the number of scalars per packet in the source and the destination type differ. More...

#include <TensorConversion.h>

+ Inheritance diagram for Eigen::TensorConversionOp< TargetType, XprType >:

Public Types

typedef internal::traits< TensorConversionOp >::Scalar Scalar
 
typedef internal::traits< TensorConversionOp >::StorageKind StorageKind
 
typedef internal::traits< TensorConversionOp >::Index Index
 
typedef internal::nested< TensorConversionOp >::type Nested
 
typedef Scalar CoeffReturnType
 
typedef NumTraits< Scalar >::Real RealScalar
 
- Public Types inherited from Eigen::TensorBase< TensorConversionOp< TargetType, XprType >, ReadOnlyAccessors >
typedef TensorBase< TensorConversionOp< TargetType, XprType >, ReadOnlyAccessors > Base
 
typedef internal::traits< TensorConversionOp< TargetType, XprType > > DerivedTraits
 
typedef DerivedTraits::Scalar Scalar
 
typedef DerivedTraits::Index Index
 
typedef Scalar CoeffReturnType
 

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp (const XprType &xpr)
 
EIGEN_DEVICE_FUNC const internal::remove_all_t< typename XprType::Nested > & expression () const
 
- Public Member Functions inherited from Eigen::TensorBase< TensorConversionOp< TargetType, XprType >, ReadOnlyAccessors >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & setZero ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & setConstant (const Scalar &val)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & setRandom ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & setRandom ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & setValues (const typename internal::Initializer< TensorConversionOp< TargetType, XprType >, NumDimensions >::InitList &vals)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & operator+= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & operator-= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & operator*= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & operator/= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorLayoutSwapOp< const TensorConversionOp< TargetType, XprType > > swap_layout () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorLayoutSwapOp< TensorConversionOp< TargetType, XprType > > swap_layout ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorConcatenationOp< const Axis, const TensorConversionOp< TargetType, XprType >, const OtherDerived > concatenate (const OtherDerived &other, const Axis &axis) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConcatenationOp< const Axis, TensorConversionOp< TargetType, XprType >, OtherDerived > concatenate (const OtherDerived &other, const Axis &axis)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReshapingOp< const NewDimensions, const TensorConversionOp< TargetType, XprType > > reshape (const NewDimensions &newDimensions) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReshapingOp< const NewDimensions, TensorConversionOp< TargetType, XprType > > reshape (const NewDimensions &newDimensions)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorSlicingOp< const StartIndices, const Sizes, const TensorConversionOp< TargetType, XprType > > slice (const StartIndices &startIndices, const Sizes &sizes) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSlicingOp< const StartIndices, const Sizes, TensorConversionOp< TargetType, XprType > > slice (const StartIndices &startIndices, const Sizes &sizes)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, const TensorConversionOp< TargetType, XprType > > stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, TensorConversionOp< TargetType, XprType > > stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< DimId, const TensorConversionOp< TargetType, XprType > > chip (const Index offset) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< DimId, TensorConversionOp< TargetType, XprType > > chip (const Index offset)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< Dynamic, const TensorConversionOp< TargetType, XprType > > chip (const Index offset, const Index dim) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< Dynamic, TensorConversionOp< TargetType, XprType > > chip (const Index offset, const Index dim)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReverseOp< const ReverseDimensions, const TensorConversionOp< TargetType, XprType > > reverse (const ReverseDimensions &rev) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReverseOp< const ReverseDimensions, TensorConversionOp< TargetType, XprType > > reverse (const ReverseDimensions &rev)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorRollOp< const Rolls, const TensorConversionOp< TargetType, XprType > > roll (const Rolls &roll) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorRollOp< const Rolls, TensorConversionOp< TargetType, XprType > > roll (const Rolls &roll)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorShufflingOp< const Shuffle, const TensorConversionOp< TargetType, XprType > > shuffle (const Shuffle &shfl) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorShufflingOp< const Shuffle, TensorConversionOp< TargetType, XprType > > shuffle (const Shuffle &shfl)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingOp< const Strides, const TensorConversionOp< TargetType, XprType > > stride (const Strides &strides) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingOp< const Strides, TensorConversionOp< TargetType, XprType > > stride (const Strides &strides)
 
TensorDevice< TensorConversionOp< TargetType, XprType >, DeviceType > device (const DeviceType &dev)
 
TensorAsyncDevice< TensorConversionOp< TargetType, XprType >, DeviceType, DoneCallback > device (const DeviceType &dev, DoneCallback done)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & derived ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorConversionOp< TargetType, XprType > & derived () const
 

Protected Attributes

XprType::Nested m_xpr
 

Additional Inherited Members

- Static Public Attributes inherited from Eigen::TensorBase< TensorConversionOp< TargetType, XprType >, ReadOnlyAccessors >
static constexpr int NumDimensions
 
- Protected Member Functions inherited from Eigen::TensorBase< TensorConversionOp< TargetType, XprType >, ReadOnlyAccessors >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConversionOp< TargetType, XprType > & operator= (const OtherDerived &other)
 

Detailed Description

template<typename TargetType, typename XprType>
class Eigen::TensorConversionOp< TargetType, XprType >

Tensor conversion class. This class makes it possible to vectorize type casting operations when the number of scalars per packet in the source and the destination type differ.

Member Typedef Documentation

◆ CoeffReturnType

template<typename TargetType , typename XprType >
typedef Scalar Eigen::TensorConversionOp< TargetType, XprType >::CoeffReturnType

◆ Index

template<typename TargetType , typename XprType >
typedef internal::traits<TensorConversionOp>::Index Eigen::TensorConversionOp< TargetType, XprType >::Index

◆ Nested

template<typename TargetType , typename XprType >
typedef internal::nested<TensorConversionOp>::type Eigen::TensorConversionOp< TargetType, XprType >::Nested

◆ RealScalar

template<typename TargetType , typename XprType >
typedef NumTraits<Scalar>::Real Eigen::TensorConversionOp< TargetType, XprType >::RealScalar

◆ Scalar

template<typename TargetType , typename XprType >
typedef internal::traits<TensorConversionOp>::Scalar Eigen::TensorConversionOp< TargetType, XprType >::Scalar

◆ StorageKind

template<typename TargetType , typename XprType >
typedef internal::traits<TensorConversionOp>::StorageKind Eigen::TensorConversionOp< TargetType, XprType >::StorageKind

Constructor & Destructor Documentation

◆ TensorConversionOp()

template<typename TargetType , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorConversionOp< TargetType, XprType >::TensorConversionOp ( const XprType xpr)
inline
175 : m_xpr(xpr) {}
XprType::Nested m_xpr
Definition: TensorConversion.h:180

Member Function Documentation

◆ expression()

template<typename TargetType , typename XprType >
EIGEN_DEVICE_FUNC const internal::remove_all_t<typename XprType::Nested>& Eigen::TensorConversionOp< TargetType, XprType >::expression ( ) const
inline

Member Data Documentation

◆ m_xpr

template<typename TargetType , typename XprType >
XprType::Nested Eigen::TensorConversionOp< TargetType, XprType >::m_xpr
protected

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