SHOGUN  6.1.3
Math.h File Reference

Go to the source code of this file.

## Classes

class  CMath
Class which collects generic mathematical functions. More...

struct  CMath::IndexSorter< T >

## Macros

#define _USE_MATH_DEFINES

#define M_PI   3.14159265358979323846

#define RNG_SEED_SIZE   256

#define radix_push(a, n, i)   sp->sa = a, sp->sn = n, (sp++)->si = i

#define radix_pop(a, n, i)   a = (--sp)->sa, n = sp->sn, i = sp->si

#define COMPLEX128_ERROR_ONEARG(function)

#define COMPLEX128_STDMATH(function)

#define COMPLEX128_ERROR_ONEARG_T(function)

## Macro Definition Documentation

 #define _USE_MATH_DEFINES

Definition at line 32 of file Math.h.

 #define COMPLEX128_ERROR_ONEARG ( function )
Value:
static inline complex128_t function(complex128_t a) \
{ \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\
#function);\
return complex128_t(0.0, 0.0); \
}
std::complex< float64_t > complex128_t
Definition: common.h:77
#define SG_SERROR(...)
Definition: SGIO.h:164

Definition at line 94 of file Math.h.

 #define COMPLEX128_ERROR_ONEARG_T ( function )
Value:
template <> \
inline complex128_t CMath::function<complex128_t>(complex128_t a) \
{ \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\
#function);\
return complex128_t(0.0, 0.0); \
}
std::complex< float64_t > complex128_t
Definition: common.h:77
#define SG_SERROR(...)
Definition: SGIO.h:164

Definition at line 2140 of file Math.h.

 #define COMPLEX128_STDMATH ( function )
Value:
static inline complex128_t function(complex128_t a) \
{ \
return std::function(a); \
}
std::complex< float64_t > complex128_t
Definition: common.h:77

Definition at line 102 of file Math.h.

 #define M_PI   3.14159265358979323846

Definition at line 50 of file Math.h.

 #define radix_pop ( a, n, i ) a = (--sp)->sa, n = sp->sn, i = sp->si

Definition at line 61 of file Math.h.

 #define radix_push ( a, n, i ) sp->sa = a, sp->sn = n, (sp++)->si = i

Definition at line 60 of file Math.h.