<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
tlapack::traits::scalar_type_traits< Types > Struct Template Reference

Common scalar type deduced from the list of types Types. More...

Detailed Description

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
Types

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