SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros
Math.h File Reference

Go to the source code of this file.

Classes

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

Macros

#define _USE_MATH_DEFINES
#define M_PI   3.14159265358979323846
 workaround for log2 being a define on cygwin
#define NAN   (strtod("NAN",NULL))
#define RNG_SEED_SIZE   256
#define RADIX_STACK_SIZE   512
#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)
#define COMPLEX128_ERROR_TWOARGS_T(function)
#define COMPLEX128_ERROR_THREEARGS_T(function)
#define COMPLEX128_ERROR_SORT_T(function)

Macro Definition Documentation

#define _USE_MATH_DEFINES

Definition at line 30 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); \
}

Definition at line 119 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); \
}

Definition at line 1617 of file Math.h.

#define COMPLEX128_ERROR_SORT_T (   function)
Value:
template <> \
inline void CMath::function<complex128_t>(complex128_t* output, int32_t b) \
{ \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\
#function);\
}

Definition at line 1644 of file Math.h.

#define COMPLEX128_ERROR_THREEARGS_T (   function)
Value:
template <> \
inline complex128_t CMath::function<complex128_t>(complex128_t a, complex128_t b, complex128_t c) \
{ \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\
#function);\
return complex128_t(0.0, 0.0); \
}

Definition at line 1635 of file Math.h.

#define COMPLEX128_ERROR_TWOARGS_T (   function)
Value:
template <> \
inline complex128_t CMath::function<complex128_t>(complex128_t a, complex128_t b) \
{ \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\
#function);\
return complex128_t(0.0, 0.0); \
}

Definition at line 1626 of file Math.h.

#define COMPLEX128_STDMATH (   function)
Value:
static inline complex128_t function(complex128_t a) \
{ \
return std::function(a); \
}

Definition at line 127 of file Math.h.

#define M_PI   3.14159265358979323846

workaround for log2 being a define on cygwin

Definition at line 58 of file Math.h.

#define NAN   (strtod("NAN",NULL))

Definition at line 73 of file Math.h.

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

Definition at line 84 of file Math.h.

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

Definition at line 83 of file Math.h.

#define RADIX_STACK_SIZE   512

Definition at line 80 of file Math.h.

#define RNG_SEED_SIZE   256

Definition at line 77 of file Math.h.


SHOGUN Machine Learning Toolbox - Documentation