<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
scalar_type_traits.hpp File Reference
#include <complex>
#include <type_traits>
Include dependency graph for scalar_type_traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tlapack::traits::complex_type_traits< const T, int >
 
struct  tlapack::traits::complex_type_traits< std::complex< T >, int >
 
struct  tlapack::traits::complex_type_traits< T, enable_if_t< std::is_arithmetic_v< T > &&!std::is_const_v< T >, int > >
 
struct  tlapack::traits::complex_type_traits< T, enable_if_t< std::is_pointer_v< T >||std::is_reference_v< T >, int > >
 
struct  tlapack::traits::complex_type_traits< T1, T2, Types... >
 
struct  tlapack::traits::real_type_traits< const T, int >
 
struct  tlapack::traits::real_type_traits< std::complex< T >, int >
 
struct  tlapack::traits::real_type_traits< T, enable_if_t< std::is_arithmetic_v< T > &&!std::is_const_v< T >, int > >
 
struct  tlapack::traits::real_type_traits< T, enable_if_t< std::is_pointer_v< T >||std::is_reference_v< T >, int > >
 
struct  tlapack::traits::real_type_traits< T1, T2, Types... >
 
struct  tlapack::traits::scalar_type_traits< T, int >
 
struct  tlapack::traits::scalar_type_traits< T1, T2, enable_if_t< is_complex< T1 >||is_complex< T2 >, int > >
 
struct  tlapack::traits::scalar_type_traits< T1, T2, enable_if_t< is_real< T1 > &&is_real< T2 >, int > >
 
struct  tlapack::traits::scalar_type_traits< T1, T2, Types... >
 

Typedefs

template<typename... Types>
using tlapack::complex_type = typename traits::complex_type_traits< Types..., int >::type
 The common complex type of the list of types.
 
template<typename... Types>
using tlapack::real_type = typename traits::real_type_traits< Types..., int >::type
 The common real type of the list of types.
 
template<typename... Types>
using tlapack::scalar_type = typename traits::scalar_type_traits< Types..., int >::type
 The common scalar type of the list of types.
 

Variables

template<typename T >
constexpr bool tlapack::is_complex = traits::complex_type_traits<T, int>::is_complex
 True if T is a complex scalar type.
 
template<typename T >
constexpr bool tlapack::is_real = traits::real_type_traits<T, int>::is_real
 True if T is a real scalar type.
 

Detailed Description

Author
Weslley S Pereira, University of Colorado Denver, USA