SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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...
 
struct  CMath::IndexSorter< T >
 

Macros

#define _USE_MATH_DEFINES
 
#define M_PI   3.14159265358979323846
 workaround for log2 being a define on cygwin More...
 
#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_ONEVECARG_RETURNS_T(function, return_type, return_statement)
 
#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 34 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; \
}
std::complex< float64_t > complex128_t
Definition: common.h:67
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 2372 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:67
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 113 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:67
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 2337 of file Math.h.

#define COMPLEX128_ERROR_ONEVECARG_RETURNS_T (   function,
  return_type,
  return_statement 
)
Value:
template <> \
inline return_type CMath::function<complex128_t>(SGVector<complex128_t> vector) \
{ \
SG_SERROR("CMath::%s():: Not supported for complex128_t\n", \
#function); \
return_statement; \
}
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 2328 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);\
}
std::complex< float64_t > complex128_t
Definition: common.h:67
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 2364 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); \
}
std::complex< float64_t > complex128_t
Definition: common.h:67
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 2355 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); \
}
std::complex< float64_t > complex128_t
Definition: common.h:67
#define SG_SERROR(...)
Definition: SGIO.h:179

Definition at line 2346 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:67

Definition at line 121 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