Eigen-unsupported  5.0.1-dev+7c7d8473
 
Loading...
Searching...
No Matches
Eigen::internal::ReductionReturnType< Op, CoeffReturnType > Struct Template Reference

#include <unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h>

Detailed Description

template<typename Op, typename CoeffReturnType>
struct Eigen::internal::ReductionReturnType< Op, CoeffReturnType >

For SYCL, the return type of the reduction is deduced from the initialize method of the given Op. This allows the reduction to have a different type for the accumulator than the input data type. If this is the case, the functor needs to have two reduce method: one for reducing an element of the input with the accumulator and the other for reducing two accumulators. Such a reducer can be useful for instance when the accumulator is a boolean or a bitset that checks for some properties of the input.


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