Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType > Class Template Reference

Tensor custom class. More...

#include <TensorCustomOp.h>

+ Inheritance diagram for Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >:

Public Types

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

Public Member Functions

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

Protected Attributes

XprType::Nested m_expr
 
const CustomUnaryFunc m_func
 

Additional Inherited Members

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

Detailed Description

template<typename CustomUnaryFunc, typename XprType>
class Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >

Tensor custom class.

Member Typedef Documentation

◆ CoeffReturnType

template<typename CustomUnaryFunc , typename XprType >
typedef XprType::CoeffReturnType Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::CoeffReturnType

◆ Index

template<typename CustomUnaryFunc , typename XprType >
typedef internal::traits<TensorCustomUnaryOp>::Index Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::Index

◆ Nested

template<typename CustomUnaryFunc , typename XprType >
typedef internal::nested<TensorCustomUnaryOp>::type Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::Nested

◆ RealScalar

template<typename CustomUnaryFunc , typename XprType >
typedef Eigen::NumTraits<Scalar>::Real Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::RealScalar

◆ Scalar

template<typename CustomUnaryFunc , typename XprType >
typedef internal::traits<TensorCustomUnaryOp>::Scalar Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::Scalar

◆ StorageKind

template<typename CustomUnaryFunc , typename XprType >
typedef internal::traits<TensorCustomUnaryOp>::StorageKind Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::StorageKind

Constructor & Destructor Documentation

◆ TensorCustomUnaryOp()

template<typename CustomUnaryFunc , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::TensorCustomUnaryOp ( const XprType expr,
const CustomUnaryFunc &  func 
)
inline
61  : m_expr(expr), m_func(func) {}
const CustomUnaryFunc m_func
Definition: TensorCustomOp.h:69
XprType::Nested m_expr
Definition: TensorCustomOp.h:68
Definition: benchGeometry.cpp:21

Member Function Documentation

◆ expression()

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

◆ func()

template<typename CustomUnaryFunc , typename XprType >
EIGEN_DEVICE_FUNC const CustomUnaryFunc& Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::func ( ) const
inline

Member Data Documentation

◆ m_expr

template<typename CustomUnaryFunc , typename XprType >
XprType::Nested Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::m_expr
protected

◆ m_func

template<typename CustomUnaryFunc , typename XprType >
const CustomUnaryFunc Eigen::TensorCustomUnaryOp< CustomUnaryFunc, XprType >::m_func
protected

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