![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Common operations and type aliases for complex arithmetic types. More...
#include <TypeTraits.hpp>
Inheritance diagram for CDPL::Math::ComplexTraits< T >:Public Types | |
| typedef T | ValueType |
The complex value type (a std::complex specialization). More... | |
| typedef T::value_type | RealType |
| The underlying real-valued type. More... | |
| typedef const T & | ConstReference |
| Constant-reference type to a value. More... | |
| typedef ComplexTraits< T > | SelfType |
| Convenience alias for this traits instantiation. More... | |
Static Public Member Functions | |
| static RealType | real (ConstReference t) |
| Returns the real part of the complex value t. More... | |
| static RealType | imag (ConstReference t) |
| Returns the imaginary part of the complex value t. More... | |
| static ValueType | conj (ConstReference t) |
| Returns the complex conjugate of t. More... | |
| static RealType | abs (ConstReference t) |
| Returns the modulus (absolute value) of the complex value t. More... | |
| static ValueType | sqrt (ConstReference t) |
| Returns the principal complex square root of t. More... | |
| static RealType | norm1 (ConstReference t) |
| Returns the L1 norm of the complex value t ( \( |\mathrm{Re}(t)| + |\mathrm{Im}(t)| \)). More... | |
| static RealType | norm2 (ConstReference t) |
| Returns the L2 norm of the complex value t (identical to its modulus). More... | |
| static RealType | normInf (ConstReference t) |
| Returns the L∞ norm of the complex value t ( \( \max(|\mathrm{Re}(t)|, |\mathrm{Im}(t)|) \)). More... | |
Common operations and type aliases for complex arithmetic types.
| T | A std::complex specialization. |
| typedef T CDPL::Math::ComplexTraits< T >::ValueType |
The complex value type (a std::complex specialization).
| typedef T::value_type CDPL::Math::ComplexTraits< T >::RealType |
The underlying real-valued type.
| typedef const T& CDPL::Math::ComplexTraits< T >::ConstReference |
Constant-reference type to a value.
| typedef ComplexTraits<T> CDPL::Math::ComplexTraits< T >::SelfType |
Convenience alias for this traits instantiation.
|
inlinestatic |
Returns the real part of the complex value t.
| t | The complex value. |
|
inlinestatic |
Returns the imaginary part of the complex value t.
| t | The complex value. |
|
inlinestatic |
Returns the complex conjugate of t.
| t | The complex value. |
|
inlinestatic |
Returns the modulus (absolute value) of the complex value t.
| t | The complex value. |
|
inlinestatic |
Returns the principal complex square root of t.
| t | The complex value. |
|
inlinestatic |
Returns the L1 norm of the complex value t ( \( |\mathrm{Re}(t)| + |\mathrm{Im}(t)| \)).
| t | The complex value. |
|
inlinestatic |
Returns the L2 norm of the complex value t (identical to its modulus).
| t | The complex value. |
|
inlinestatic |
Returns the L∞ norm of the complex value t ( \( \max(|\mathrm{Re}(t)|, |\mathrm{Im}(t)|) \)).
| t | The complex value. |