Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Types | List of all members
uni20::make_complex< T > Struct Template Reference

Metafunction that produces the complex counterpart of a real-valued scalar. More...

#include <scalar_traits.hpp>

Public Types

using type = uni20::complex< T >
 
using type = T
 

Detailed Description

template<typename T>
requires is_real_v<T>
struct uni20::make_complex< T >

Metafunction that produces the complex counterpart of a real-valued scalar.

Metafunction that leaves already-complex types unchanged.

For Uni20 real scalar types this specialization aliases uni20::complex<T>.

Template Parameters
TReal scalar type to complexify.
TType whose scalar component is already complex.

Member Typedef Documentation

◆ type [1/2]

template<typename T >
using uni20::make_complex< T >::type = uni20::complex<T>

◆ type [2/2]

template<typename T >
using uni20::make_complex< T >::type = T

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