SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Defines
Math.h File Reference

Go to the source code of this file.

Classes

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

Defines

#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 Documentation

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 112 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 1592 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 1619 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 1610 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 1601 of file Math.h.

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

Definition at line 120 of file Math.h.

#define M_PI   3.14159265358979323846

workaround for log2 being a define on cygwin

Definition at line 56 of file Math.h.

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

Definition at line 77 of file Math.h.

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

Definition at line 76 of file Math.h.

#define RADIX_STACK_SIZE   512

Definition at line 73 of file Math.h.

#define RNG_SEED_SIZE   256

Definition at line 70 of file Math.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation