Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ > Class Template Reference

#include <TensorReduction.h>

+ Inheritance diagram for Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >:

Public Types

typedef Eigen::internal::traits< TensorReductionOp >::Scalar Scalar
 
typedef Eigen::NumTraits< Scalar >::Real RealScalar
 
typedef std::remove_const_t< typename XprType::CoeffReturnType > CoeffReturnType
 
typedef Eigen::internal::nested< TensorReductionOp >::type Nested
 
typedef Eigen::internal::traits< TensorReductionOp >::StorageKind StorageKind
 
typedef Eigen::internal::traits< TensorReductionOp >::Index Index
 
- Public Types inherited from Eigen::TensorBase< TensorReductionOp< Op, Dims, XprType, MakePointer_ >, ReadOnlyAccessors >
typedef TensorBase< TensorReductionOp< Op, Dims, XprType, MakePointer_ >, ReadOnlyAccessors > Base
 
typedef internal::traits< TensorReductionOp< Op, Dims, XprType, MakePointer_ > > DerivedTraits
 
typedef DerivedTraits::Scalar Scalar
 
typedef DerivedTraits::Index Index
 
typedef Scalar CoeffReturnType
 

Public Member Functions

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

Protected Attributes

XprType::Nested m_expr
 
const Dims m_dims
 
const Op m_reducer
 

Additional Inherited Members

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

Member Typedef Documentation

◆ CoeffReturnType

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
typedef std::remove_const_t<typename XprType::CoeffReturnType> Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::CoeffReturnType

◆ Index

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
typedef Eigen::internal::traits<TensorReductionOp>::Index Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::Index

◆ Nested

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
typedef Eigen::internal::nested<TensorReductionOp>::type Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::Nested

◆ RealScalar

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
typedef Eigen::NumTraits<Scalar>::Real Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::RealScalar

◆ Scalar

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
typedef Eigen::internal::traits<TensorReductionOp>::Scalar Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::Scalar

◆ StorageKind

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
typedef Eigen::internal::traits<TensorReductionOp>::StorageKind Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::StorageKind

Constructor & Destructor Documentation

◆ TensorReductionOp() [1/2]

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::TensorReductionOp ( const XprType expr,
const Dims &  dims 
)
inline
520  : m_expr(expr), m_dims(dims) {}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dims & dims() const
Definition: TensorReduction.h:525
const Dims m_dims
Definition: TensorReduction.h:530
XprType::Nested m_expr
Definition: TensorReduction.h:529

◆ TensorReductionOp() [2/2]

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::TensorReductionOp ( const XprType expr,
const Dims &  dims,
const Op &  reducer 
)
inline
522  : m_expr(expr), m_dims(dims), m_reducer(reducer) {}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Op & reducer() const
Definition: TensorReduction.h:526
const Op m_reducer
Definition: TensorReduction.h:531

Member Function Documentation

◆ dims()

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dims& Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::dims ( ) const
inline

◆ expression()

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const XprType& Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::expression ( ) const
inline

◆ reducer()

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Op& Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::reducer ( ) const
inline

Member Data Documentation

◆ m_dims

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
const Dims Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::m_dims
protected

◆ m_expr

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
XprType::Nested Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::m_expr
protected

◆ m_reducer

template<typename Op , typename Dims , typename XprType , template< class > class MakePointer_>
const Op Eigen::TensorReductionOp< Op, Dims, XprType, MakePointer_ >::m_reducer
protected

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