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

浏览源代码.

class  CMath
 Class which collects generic mathematical functions. 更多...
 
struct  CMath::IndexSorter< T >
 

宏定义

#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_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)
 

宏定义说明

#define _USE_MATH_DEFINES

在文件 Math.h34 行定义.

#define COMPLEX128_ERROR_ARG_MAX_MIN (   function)
值:
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

在文件 Math.h2372 行定义.

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

在文件 Math.h113 行定义.

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

在文件 Math.h2337 行定义.

#define COMPLEX128_ERROR_ONEVECARG_RETURNS_T (   function,
  return_type,
  return_statement 
)
值:
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

在文件 Math.h2328 行定义.

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

在文件 Math.h2364 行定义.

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

在文件 Math.h2355 行定义.

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

在文件 Math.h2346 行定义.

#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:67

在文件 Math.h121 行定义.

#define M_PI   3.14159265358979323846

workaround for log2 being a define on cygwin

在文件 Math.h59 行定义.

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

在文件 Math.h80 行定义.

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

在文件 Math.h79 行定义.

#define RADIX_STACK_SIZE   512

在文件 Math.h76 行定义.

#define RNG_SEED_SIZE   256

在文件 Math.h73 行定义.


SHOGUN 机器学习工具包 - 项目文档