tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches

Complex number type. More...

Classes

struct  complex< T >
 A complex number. More...
 

Functions

template<typename T>
constexpr auto abs (complex< T > const &z) -> T
 
template<typename T>
constexpr auto arg (complex< T > const &z) noexcept -> T
 
template<floating_point Float>
constexpr auto arg (Float f) noexcept -> complex< Float >
 
template<integral Integer>
constexpr auto arg (Integer i) noexcept -> complex< double >
 
template<typename T>
constexpr auto conj (complex< T > const &z) noexcept -> complex< T >
 
template<floating_point Float>
constexpr auto conj (Float f) noexcept -> complex< Float >
 
template<integral Integer>
constexpr auto conj (Integer i) noexcept -> complex< double >
 
template<typename T>
constexpr auto cos (complex< T > const &z) -> complex< T >
 
template<typename T>
constexpr auto cosh (complex< T > const &z) -> complex< T >
 
template<typename T>
constexpr auto imag (complex< T > const &z) noexcept(noexcept(z.imag())) -> T
 
template<floating_point Float>
constexpr auto imag (Float) noexcept -> Float
 
template<integral Integer>
constexpr auto imag (Integer) noexcept -> double
 
template<typename T>
constexpr auto log (complex< T > const &z) noexcept -> complex< T >
 
template<typename T>
constexpr auto log10 (complex< T > const &z) noexcept -> complex< T >
 
template<typename T>
constexpr auto norm (complex< T > const &z) noexcept -> T
 
template<floating_point Float>
constexpr auto norm (Float f) noexcept -> complex< Float >
 
template<integral Integer>
constexpr auto norm (Integer i) noexcept -> complex< double >
 
template<typename T>
constexpr auto polar (T const &r, T const &theta=T()) noexcept -> etl::complex< T >
 
template<typename T>
constexpr auto real (complex< T > const &z) noexcept(noexcept(z.real())) -> T
 
template<floating_point Float>
constexpr auto real (Float f) noexcept -> Float
 
template<integral Integer>
constexpr auto real (Integer i) noexcept -> double
 
template<typename T>
constexpr auto sin (complex< T > const &z) -> complex< T >
 
template<typename T>
constexpr auto sinh (complex< T > const &z) -> complex< T >
 
template<typename T>
constexpr auto tan (complex< T > const &z) -> complex< T >
 
template<typename T>
constexpr auto tanh (complex< T > const &z) -> complex< T >
 

Detailed Description

Complex number type.

Function Documentation

◆ abs()

template<typename T>
auto abs ( complex< T > const & z) -> T
nodiscardconstexpr

◆ arg() [1/3]

template<typename T>
auto arg ( complex< T > const & z) -> T
nodiscardconstexprnoexcept

◆ arg() [2/3]

template<floating_point Float>
auto arg ( Float f) -> complex<Float>
nodiscardconstexprnoexcept

◆ arg() [3/3]

template<integral Integer>
auto arg ( Integer i) -> complex<double>
nodiscardconstexprnoexcept

◆ conj() [1/3]

template<typename T>
auto conj ( complex< T > const & z) -> complex<T>
nodiscardconstexprnoexcept

◆ conj() [2/3]

template<floating_point Float>
auto conj ( Float f) -> complex<Float>
nodiscardconstexprnoexcept

◆ conj() [3/3]

template<integral Integer>
auto conj ( Integer i) -> complex<double>
nodiscardconstexprnoexcept

◆ cos()

template<typename T>
auto cos ( complex< T > const & z) -> complex<T>
nodiscardconstexpr

◆ cosh()

template<typename T>
auto cosh ( complex< T > const & z) -> complex<T>
nodiscardconstexpr

◆ imag() [1/3]

template<typename T>
auto imag ( complex< T > const & z) -> T
nodiscardconstexprnoexcept

◆ imag() [2/3]

template<floating_point Float>
auto imag ( Float ) -> Float
nodiscardconstexprnoexcept

◆ imag() [3/3]

template<integral Integer>
auto imag ( Integer ) -> double
nodiscardconstexprnoexcept

◆ log()

template<typename T>
auto log ( complex< T > const & z) -> complex<T>
nodiscardconstexprnoexcept

◆ log10()

template<typename T>
auto log10 ( complex< T > const & z) -> complex<T>
nodiscardconstexprnoexcept

◆ norm() [1/3]

template<typename T>
auto norm ( complex< T > const & z) -> T
nodiscardconstexprnoexcept

◆ norm() [2/3]

template<floating_point Float>
auto norm ( Float f) -> complex<Float>
nodiscardconstexprnoexcept

◆ norm() [3/3]

template<integral Integer>
auto norm ( Integer i) -> complex<double>
nodiscardconstexprnoexcept

◆ polar()

template<typename T>
auto polar ( T const & r,
T const & theta = T() ) -> etl::complex<T>
nodiscardconstexprnoexcept

◆ real() [1/3]

template<typename T>
auto real ( complex< T > const & z) -> T
nodiscardconstexprnoexcept

◆ real() [2/3]

template<floating_point Float>
auto real ( Float f) -> Float
nodiscardconstexprnoexcept

◆ real() [3/3]

template<integral Integer>
auto real ( Integer i) -> double
nodiscardconstexprnoexcept

◆ sin()

template<typename T>
auto sin ( complex< T > const & z) -> complex<T>
nodiscardconstexpr

◆ sinh()

template<typename T>
auto sinh ( complex< T > const & z) -> complex<T>
nodiscardconstexpr

◆ tan()

template<typename T>
auto tan ( complex< T > const & z) -> complex<T>
nodiscardconstexpr

◆ tanh()

template<typename T>
auto tanh ( complex< T > const & z) -> complex<T>
nodiscardconstexpr