Eigen::TensorCwiseUnaryOp< UnaryOp, XprType > Class Template Reference

#include <TensorExpr.h>

+ Inheritance diagram for Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >:

Public Types

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

Public Member Functions

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

Protected Attributes

XprType::Nested m_xpr
 
const UnaryOp m_functor
 

Additional Inherited Members

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

Member Typedef Documentation

◆ CoeffReturnType

template<typename UnaryOp , typename XprType >
typedef Scalar Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::CoeffReturnType

◆ Index

template<typename UnaryOp , typename XprType >
typedef Eigen::internal::traits<TensorCwiseUnaryOp>::Index Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::Index

◆ Nested

template<typename UnaryOp , typename XprType >
typedef Eigen::internal::nested<TensorCwiseUnaryOp>::type Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::Nested

◆ RealScalar

template<typename UnaryOp , typename XprType >
typedef Eigen::NumTraits<Scalar>::Real Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::RealScalar

◆ Scalar

template<typename UnaryOp , typename XprType >
typedef Eigen::internal::traits<TensorCwiseUnaryOp>::Scalar Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::Scalar

◆ StorageKind

template<typename UnaryOp , typename XprType >
typedef Eigen::internal::traits<TensorCwiseUnaryOp>::StorageKind Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::StorageKind

Constructor & Destructor Documentation

◆ TensorCwiseUnaryOp()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::TensorCwiseUnaryOp ( const XprType xpr,
const UnaryOp &  func = UnaryOp() 
)
inline
109  : m_xpr(xpr), m_functor(func) {}
XprType::Nested m_xpr
Definition: TensorExpr.h:117
const UnaryOp m_functor
Definition: TensorExpr.h:118
Definition: benchGeometry.cpp:21

Member Function Documentation

◆ functor()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC const UnaryOp& Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::functor ( ) const
inline

◆ nestedExpression()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC const internal::remove_all_t<typename XprType::Nested>& Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::nestedExpression ( ) const
inline
Returns
the nested expression
114 { return m_xpr; }

References Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::m_xpr.

Member Data Documentation

◆ m_functor

template<typename UnaryOp , typename XprType >
const UnaryOp Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::m_functor
protected

◆ m_xpr

template<typename UnaryOp , typename XprType >
XprType::Nested Eigen::TensorCwiseUnaryOp< UnaryOp, XprType >::m_xpr
protected

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