Chemical Data Processing Library C++ API - Version 1.1.1
Public Types | Static Public Member Functions | List of all members
CDPL::Math::ScalarTraits< T > Struct Template Reference

#include <TypeTraits.hpp>

Public Types

typedef T ValueType
 
typedef T RealType
 
typedef const T & ConstReference
 
typedef ScalarTraits< T > SelfType
 

Static Public Member Functions

static RealType real (ConstReference t)
 
static RealType imag (ConstReference)
 
static RealType conj (ConstReference t)
 
static RealType abs (ConstReference t)
 
static ValueType sqrt (ConstReference t)
 
static RealType norm1 (ConstReference t)
 
static RealType norm2 (ConstReference t)
 
static RealType normInf (ConstReference t)
 

Member Typedef Documentation

◆ ValueType

template<typename T >
typedef T CDPL::Math::ScalarTraits< T >::ValueType

◆ RealType

template<typename T >
typedef T CDPL::Math::ScalarTraits< T >::RealType

◆ ConstReference

template<typename T >
typedef const T& CDPL::Math::ScalarTraits< T >::ConstReference

◆ SelfType

template<typename T >
typedef ScalarTraits<T> CDPL::Math::ScalarTraits< T >::SelfType

Member Function Documentation

◆ real()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::real ( ConstReference  t)
inlinestatic

◆ imag()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::imag ( ConstReference  )
inlinestatic

◆ conj()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::conj ( ConstReference  t)
inlinestatic

◆ abs()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::abs ( ConstReference  t)
inlinestatic

◆ sqrt()

template<typename T >
static ValueType CDPL::Math::ScalarTraits< T >::sqrt ( ConstReference  t)
inlinestatic

◆ norm1()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::norm1 ( ConstReference  t)
inlinestatic

◆ norm2()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::norm2 ( ConstReference  t)
inlinestatic

◆ normInf()

template<typename T >
static RealType CDPL::Math::ScalarTraits< T >::normInf ( ConstReference  t)
inlinestatic

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