<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Complex type traits for the list of types Types
.
More...
Complex type traits for the list of types Types
.
The deduced common complex type is defined on complex_type_traits<Types...>::type
. For a single type T
, the trait also defines a static boolean is_complex
that is true if T
is a complex type. Use the aliases tlapack::complex_type and tlapack::is_complex instead.
Rules when a single type T
is given:
T
is a non-const non-complex std arithmetic type or a std complex type, then the deduced type is the std complex type of tlapack::real_type<T>
.T
is a const type, then the deduced type is the same as the one of the non-const version.T
is a pointer or reference, then the deduced type is void. This is to avoid accidental promotion of pointers and references.For two or more types, the deduced type is the complex type of tlapack::real_type_traits<Types...>::type
.
Types | A list of types |