SHOGUN
v3.2.0
|
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 _USE_MATH_DEFINES |
#define COMPLEX128_ERROR_ONEARG | ( | function | ) |
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); \ }
#define COMPLEX128_ERROR_ONEARG_T | ( | function | ) |
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); \ }
#define COMPLEX128_ERROR_SORT_T | ( | function | ) |
template <> \ inline void CMath::function<complex128_t>(complex128_t* output, int32_t b) \ { \ SG_SERROR("CMath::%s():: Not supported for complex128_t\n",\ #function);\ }
#define COMPLEX128_ERROR_THREEARGS_T | ( | function | ) |
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); \ }
#define COMPLEX128_ERROR_TWOARGS_T | ( | function | ) |
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); \ }
#define COMPLEX128_STDMATH | ( | function | ) |
static inline complex128_t function(complex128_t a) \ { \ return std::function(a); \ }
#define M_PI 3.14159265358979323846 |
#define radix_pop | ( | a, | |
n, | |||
i | |||
) | a = (--sp)->sa, n = sp->sn, i = sp->si |
#define radix_push | ( | a, | |
n, | |||
i | |||
) | sp->sa = a, sp->sn = n, (sp++)->si = i |
#define RADIX_STACK_SIZE 512 |
#define RNG_SEED_SIZE 256 |