Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::make_complex< T > Struct Template Reference

Metafunction to convert a type to its complexified analog. More...

Detailed Description

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

Metafunction to convert a type to its complexified analog.

For real scalar types (e.g., float, double), returns uni20::complex<T>. For types that already have a complex scalar (including containers), returns T unchanged.

Note
This is a customization point. Users may specialize this for containers such as tensors, enabling automatic transformation to complex-valued analogs.
Template Parameters
TType to convert.

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