Jpp  15.0.1-rc.2-highQE
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Private Member Functions | Friends | List of all members
JMATH::JMath_t Struct Reference

Auxiliary class to hide data type specific methods. More...

#include <JMath.hh>

Static Private Member Functions

template<class T >
static T pow (const T &x, const double y, const JLANG::JBool< true > option)
 Power $x^y$. More...
 
template<class T >
static T pow (const T &x, const double y, const JLANG::JBool< false > option)
 Power $x^y$. More...
 

Friends

template<class T >
T JMATH::pow (const T &, const double y)
 Friend declaration of global method. More...
 

Detailed Description

Auxiliary class to hide data type specific methods.

Definition at line 48 of file JMath.hh.

Member Function Documentation

template<class T >
static T JMATH::JMath_t::pow ( const T x,
const double  y,
const JLANG::JBool< true >  option 
)
inlinestaticprivate

Power $x^y$.

This method corresponds to primitive data types.

Parameters
xvalue
ypower
optiontrue
Returns
result

Definition at line 66 of file JMath.hh.

67  {
68  return std::pow(x, y);
69  }
T pow(const T &x, const double y)
Power .
Definition: JMath.hh:98
template<class T >
static T JMATH::JMath_t::pow ( const T x,
const double  y,
const JLANG::JBool< false >  option 
)
inlinestaticprivate

Power $x^y$.

Power. This method corresponds to non-primitive data types.

Parameters
xvalue
ypower
optionfalse
Returns
result

Definition at line 83 of file JMath.hh.

84  {
85  return T(x).pow(y);
86  }
do set_variable OUTPUT_DIRECTORY $WORKDIR T

Friends And Related Function Documentation

template<class T >
T JMATH::pow ( const T ,
const double  y 
)
friend

Friend declaration of global method.


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