Template Numerical Library: TNL::IsScalarType< T > Struct Template Reference

Template Numerical Library version\ main:be7e16d88

Loading...
Searching...
No Matches
TNL::IsScalarType< T > Struct Template Reference

Type trait for checking if T is a scalar type (in the mathemtatical sense). Not to be confused with std::is_scalar. More...

`#include <TNL/TypeTraits.h>`

Inheritance diagram for TNL::IsScalarType< T >:
[legend]
Collaboration diagram for TNL::IsScalarType< T >:
[legend]

## Detailed Description

template<typename T>
struct TNL::IsScalarType< T >

Type trait for checking if T is a scalar type (in the mathemtatical sense). Not to be confused with std::is_scalar.

For example, arithmetic types as defined by the STL are scalar types. std::complex is also considered as scalar type. TNL also provides additional scalar types, e.g. for extended precision arithmetics. Users may also define specializations of this trait class for their custom scalar types.

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

- src/TNL/TypeTraits.h