Eigen::internal::FullReducer< Self, Op, Device, Vectorizable > Struct Template Reference

#include <TensorReduction.h>

Static Public Member Functions

static EIGEN_DEVICE_FUNC void run (const Self &self, Op &reducer, const Device &, typename Self::EvaluatorPointerType output)
 

Static Public Attributes

static constexpr bool HasOptimizedImplementation = false
 

Member Function Documentation

◆ run()

template<typename Self , typename Op , typename Device , bool Vectorizable = (Self::InputPacketAccess && Self::ReducerTraits::PacketAccess)>
static EIGEN_DEVICE_FUNC void Eigen::internal::FullReducer< Self, Op, Device, Vectorizable >::run ( const Self &  self,
Op &  reducer,
const Device &  ,
typename Self::EvaluatorPointerType  output 
)
inlinestatic
360  {
361  const typename Self::Index num_coeffs = array_prod(self.m_impl.dimensions());
362  *output = InnerMostDimReducer<Self, Op, Vectorizable>::reduce(self, 0, num_coeffs, reducer);
363  }
constexpr EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE auto array_prod(const array< T, N > &arr) -> decltype(array_reduce< product_op, T, N >(arr, static_cast< T >(1)))
Definition: MoreMeta.h:497
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
void output(std::ostream &outfile, const unsigned &nplot)
Overload output function.
Definition: overloaded_element_body.h:490
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Self::CoeffReturnType reduce(const Self &self, typename Self::Index firstIndex, typename Self::Index numValuesToReduce, Op &reducer)
Definition: TensorReduction.h:173

References Eigen::internal::array_prod(), output(), and Eigen::internal::InnerMostDimReducer< Self, Op, Vectorizable, UseTreeReduction >::reduce().

Referenced by Eigen::TensorReductionEvaluatorBase< const TensorReductionOp< Op, Dims, ArgType, MakePointer_ >, Device >::evalSubExprsIfNeededCommon().

Member Data Documentation

◆ HasOptimizedImplementation

template<typename Self , typename Op , typename Device , bool Vectorizable = (Self::InputPacketAccess && Self::ReducerTraits::PacketAccess)>
constexpr bool Eigen::internal::FullReducer< Self, Op, Device, Vectorizable >::HasOptimizedImplementation = false
staticconstexpr

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