Blaze 3.9
blaze::MakeComplex< T > Struct Template Reference

Converting the given type to the matching 'complex' type. More...

#include <MakeComplex.h>

Detailed Description

template<typename T>
struct blaze::MakeComplex< T >

Converting the given type to the matching 'complex' type.

The MakeComplex type trait converts the given floating point type T to the matching 'complex' type with the same cv-qualifiers. 'complex' types are preserved. For all other types, including integral types, no type conversion is performed.

blaze::MakeComplex< float >::Type // Results in 'complex<float>'
blaze::MakeComplex< complex<double> >::Type // Results in 'complex<double>'
blaze::MakeComplex< const long double >::Type // Results in 'const complex<long double>'
blaze::MakeComplex< volatile complex<double> >::Type // Results in 'volatile complex<double>'
Converting the given type to the matching 'complex' type.
Definition: MakeComplex.h:74

Note that it is possible to add support for other data types by specializing the MakeComplex class template.


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