ivl 679
|
to_complex is used to promote real-only types to complex types More...
#include <evolution.hpp>
Inherits type< is_ivl_array< T >, to_type< to_complex< subtype< T >::type >::type, T >, to_type< std::complex< T > > >.
to_complex is used to promote real-only types to complex types
This struct promotes any type T to std::complex<T>, in case T is a simple type. If however T is a complex type, it leaves it as it is. It is used to avoid std::complex<std::complex<T> > issues, where in template functions where both complex and real types are used.