Common scalar type deduced from the list of types Types
.
More...
template<typename... Types>
struct tlapack::traits::scalar_type_traits< Types >
Common scalar type deduced from the list of types Types
.
The deduced common scalar type is defined on scalar_type_traits<Types...>::type
. Use the alias tlapack::scalar_type to get the deduced type.
Rules:
- For one type, the deduced type is the same the type deduced for the pair of types
T
and T
.
- For two types, if one of them is a complex type, then the deduced type is the same type deduced by
tlapack::complex_type
.
- For two types, if both are real types, then the deduced type is the same type deduced by
tlapack::real_type
.
- For three or more types, use a recursive call to deduce the common scalar type of the first two types, and then recursively deduce the common scalar type of the result and the remaining types.
- Template Parameters
-
The documentation for this struct was generated from the following file: