SHOGUN  v3.2.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
| 宏定义
Math.h 文件参考

浏览源代码.

class  CMath
 Class which collects generic mathematical functions. 更多...
 

宏定义

#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

在文件 Math.h30 行定义.

#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); \
}
std::complex< float64_t > complex128_t
Definition: common.h:65
#define SG_SERROR(...)
Definition: SGIO.h:181

在文件 Math.h112 行定义.

#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); \
}
std::complex< float64_t > complex128_t
Definition: common.h:65
#define SG_SERROR(...)
Definition: SGIO.h:181

在文件 Math.h1592 行定义.

#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);\
}
std::complex< float64_t > complex128_t
Definition: common.h:65
#define SG_SERROR(...)
Definition: SGIO.h:181

在文件 Math.h1619 行定义.

#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); \
}
std::complex< float64_t > complex128_t
Definition: common.h:65
#define SG_SERROR(...)
Definition: SGIO.h:181

在文件 Math.h1610 行定义.

#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); \
}
std::complex< float64_t > complex128_t
Definition: common.h:65
#define SG_SERROR(...)
Definition: SGIO.h:181

在文件 Math.h1601 行定义.

#define COMPLEX128_STDMATH (   function)
值:
static inline complex128_t function(complex128_t a) \
{ \
return std::function(a); \
}
std::complex< float64_t > complex128_t
Definition: common.h:65

在文件 Math.h120 行定义.

#define M_PI   3.14159265358979323846

workaround for log2 being a define on cygwin

在文件 Math.h56 行定义.

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

在文件 Math.h77 行定义.

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

在文件 Math.h76 行定义.

#define RADIX_STACK_SIZE   512

在文件 Math.h73 行定义.

#define RNG_SEED_SIZE   256

在文件 Math.h70 行定义.


SHOGUN Machine Learning Toolbox - Documentation