Stratax 0.3.1
Loading...
Searching...
No Matches
ReductionTraits< T > Struct Template Reference

Selects accumulator and result types for numeric reductions. More...

#include <ReductionTraits.hpp>

Public Types

using sum_type = T
 
using prod_type = T
 

Detailed Description

template<typename T>
struct ReductionTraits< T >

Selects accumulator and result types for numeric reductions.

The primary template preserves the input dtype. Specializations may select wider or otherwise more appropriate types for individual reductions.

Template Parameters
TUnqualified array value type.

Definition at line 14 of file ReductionTraits.hpp.

Member Typedef Documentation

◆ prod_type

template<typename T >
using ReductionTraits< T >::prod_type = T

Definition at line 17 of file ReductionTraits.hpp.

◆ sum_type

template<typename T >
using ReductionTraits< T >::sum_type = T

Definition at line 16 of file ReductionTraits.hpp.


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