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

Complex type traits for the list of types Types. More...

Detailed Description

template<typename... Types>
struct tlapack::traits::complex_type_traits< Types >

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:

  • If 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>.
  • If T is a const type, then the deduced type is the same as the one of the non-const version.
  • If 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.

Template Parameters
TypesA list of types

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