SHOGUN  3.2.1
 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 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)
#define COMPLEX128_ERROR_ARG_MAX_MIN(function)

Macro Definition Documentation

#define _USE_MATH_DEFINES

Definition at line 33 of file Math.h.

#define COMPLEX128_ERROR_ARG_MAX_MIN (   function)
Value:
template <> \
inline int32_t CMath::function<complex128_t>(complex128_t * a, int32_t b, int32_t c, complex128_t * d) \
{ \
int32_t maxIdx=0; \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\
#function);\
return maxIdx; \
}

Definition at line 1815 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 115 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 1780 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 1807 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 1798 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 1789 of file Math.h.

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

Definition at line 123 of file Math.h.

#define M_PI   3.14159265358979323846

workaround for log2 being a define on cygwin

Definition at line 59 of file Math.h.

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

Definition at line 80 of file Math.h.

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

Definition at line 79 of file Math.h.

#define RADIX_STACK_SIZE   512

Definition at line 76 of file Math.h.

#define RNG_SEED_SIZE   256

Definition at line 73 of file Math.h.


SHOGUN Machine Learning Toolbox - Documentation