<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Real type traits for the list of types Types
.
More...
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:
T
is a non-const non-complex std arithmetic type, then the deduced type is the decayed type of T
.T
is a std complex type, then the deduced type is the decayed type of the real part of 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, use std::common_type_t
to deduce the common type using recursive calls.
Types | A list of types |