|
Stratax 0.4.0rc1
|
Selects accumulator and result types for numeric reductions. More...
#include <ReductionTraits.hpp>
Public Types | |
| using | sum_type = T |
| Sum accumulator and result type; not automatically widened. | |
| using | prod_type = T |
| Product accumulator and result type; not automatically widened. | |
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.
| T | Unqualified array value type. |
Definition at line 17 of file ReductionTraits.hpp.
| using ReductionTraits< T >::prod_type = T |
Product accumulator and result type; not automatically widened.
Definition at line 22 of file ReductionTraits.hpp.
| using ReductionTraits< T >::sum_type = T |
Sum accumulator and result type; not automatically widened.
Definition at line 20 of file ReductionTraits.hpp.