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

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

Detailed Description

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

Real type traits for the list of types Types.

The deduced common real type is defined on real_type_traits<Types...>::type. For a single type T, the trait also defines a static boolean is_real that is true if T is a real type. Use the aliases tlapack::real_type and tlapack::is_real instead.

Rules when a single type T is given:

  • If T is a non-const non-complex std arithmetic type, then the deduced type is the decayed type of T.
  • If T is a std complex type, then the deduced type is the decayed type of the real part of 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, use std::common_type_t to deduce the common type using recursive calls.

Template Parameters
TypesA list of types

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