Rosetta  2020.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | List of all members
numeric::NumericTraits< T > Struct Template Reference

NumericTraits: Numeric type traits. More...

#include <NumericTraits.hh>

Public Types

typedef T Type
 

Static Public Member Functions

static constexpr Type zero ()
 Zero. More...
 
static constexpr Type one ()
 One. More...
 
static constexpr Type two ()
 Two. More...
 
static constexpr Type pi ()
 pi More...
 
static constexpr Type pi_2 ()
 2*pi More...
 
static constexpr Type pi_over_2 ()
 pi/2 More...
 
static constexpr Type pi_over_3 ()
 pi/3 More...
 
static constexpr Type pi_over_4 ()
 pi/4 More...
 
static constexpr Type pi_2_over_3 ()
 (2*pi)/3 More...
 
static constexpr Type pi_3_over_4 ()
 (3*pi)/4 More...
 
static constexpr Type pi_over_180 ()
 pi/180 More...
 
static constexpr Type degrees_to_radians ()
 pi/180 More...
 
static constexpr Type deg2rad ()
 pi/180 More...
 
static constexpr Type radians_to_degrees ()
 180/pi More...
 
static constexpr Type rad2deg ()
 180/pi More...
 
static constexpr Type sqrt_2pi ()
 sqrt(2*pi) More...
 

Detailed Description

template<typename T>
struct numeric::NumericTraits< T >

NumericTraits: Numeric type traits.

Member Typedef Documentation

template<typename T >
typedef T numeric::NumericTraits< T >::Type

Member Function Documentation

template<typename T >
static constexpr Type numeric::NumericTraits< T >::deg2rad ( )
inlinestatic

pi/180

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::degrees_to_radians ( )
inlinestatic
template<typename T >
static constexpr Type numeric::NumericTraits< T >::one ( )
inlinestatic

One.

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi ( )
inlinestatic
template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_2 ( )
inlinestatic
template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_2_over_3 ( )
inlinestatic

(2*pi)/3

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_3_over_4 ( )
inlinestatic

(3*pi)/4

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_over_180 ( )
inlinestatic
template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_over_2 ( )
inlinestatic
template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_over_3 ( )
inlinestatic

pi/3

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::pi_over_4 ( )
inlinestatic

pi/4

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::rad2deg ( )
inlinestatic

180/pi

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::radians_to_degrees ( )
inlinestatic
template<typename T >
static constexpr Type numeric::NumericTraits< T >::sqrt_2pi ( )
inlinestatic

sqrt(2*pi)

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::two ( )
inlinestatic

Two.

References ObjexxFCL::format::L().

template<typename T >
static constexpr Type numeric::NumericTraits< T >::zero ( )
inlinestatic

Zero.

References ObjexxFCL::format::L().


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