|
Stratax 0.4.0rc1
|
Accumulator and result dtype selection for reductions. More...
#include <type_traits>

Go to the source code of this file.
Classes | |
| struct | ReductionTraits< T > |
| Selects accumulator and result types for numeric reductions. More... | |
Typedefs | |
| template<typename T > | |
| using | reduction_sum_t = typename ReductionTraits< std::remove_cvref_t< T > >::sum_type |
Accumulator and result type used by reduction::sum. | |
| template<typename T > | |
| using | reduction_prod_t = typename ReductionTraits< std::remove_cvref_t< T > >::prod_type |
Accumulator and result type used by reduction::prod. | |
Accumulator and result dtype selection for reductions.
Definition in file ReductionTraits.hpp.
| using reduction_prod_t = typename ReductionTraits<std::remove_cvref_t<T> >::prod_type |
Accumulator and result type used by reduction::prod.
cv- and reference qualifiers are removed before consulting the trait.
| T | Array value type, possibly cv- or reference-qualified. |
Definition at line 42 of file ReductionTraits.hpp.
| using reduction_sum_t = typename ReductionTraits<std::remove_cvref_t<T> >::sum_type |
Accumulator and result type used by reduction::sum.
cv- and reference qualifiers are removed before consulting the trait.
| T | Array value type, possibly cv- or reference-qualified. |
Definition at line 32 of file ReductionTraits.hpp.