![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Scalar imaginary-part functor: apply(v) returns \( \mathrm{Im}(v) \) (zero for real types).
More...
#include <Functional.hpp>
Inheritance diagram for CDPL::Math::ScalarImaginary< T >:Public Types | |
| typedef ScalarUnaryFunctor< T >::ValueType | ValueType |
| typedef ScalarUnaryFunctor< T >::ArgumentType | ArgumentType |
| typedef ScalarUnaryFunctor< T >::ResultType | ResultType |
Public Types inherited from CDPL::Math::ScalarRealUnaryFunctor< T > | |
| typedef T | ValueType |
| The scalar value type. More... | |
| typedef const T & | ArgumentType |
The argument type (a const reference to ValueType). More... | |
| typedef TypeTraits< T >::RealType | ResultType |
| The real-valued result type derived from ValueType via Math::TypeTraits. More... | |
Static Public Member Functions | |
| static ResultType | apply (ArgumentType v) |
| Returns the imaginary part of v. More... | |
Scalar imaginary-part functor: apply(v) returns \( \mathrm{Im}(v) \) (zero for real types).
| T | The scalar value type. |
| typedef ScalarUnaryFunctor<T>::ValueType CDPL::Math::ScalarImaginary< T >::ValueType |
| typedef ScalarUnaryFunctor<T>::ArgumentType CDPL::Math::ScalarImaginary< T >::ArgumentType |
| typedef ScalarUnaryFunctor<T>::ResultType CDPL::Math::ScalarImaginary< T >::ResultType |
|
inlinestatic |
Returns the imaginary part of v.
| v | The scalar argument. |