Skip to main content

sigmoid

~FastMath​

函数功能​

FastMath类的默认析构函数。

函数原型​

~FastMath();

父主题: FastMath

exp​

函数功能​

快速幂运算。

函数原型​

inline float exp(const float x);

参数说明​

参数名输入/输出说明
x输入指数。

返回参数说明​

数据结构说明
float运算结果。

父主题: FastMath

sigmoid​

函数功能​

快速sigmoid函数运算。

函数原型​

inline float sigmoid(float x);

参数说明​

参数名输入/输出说明
x输入指数。

返回参数说明​

数据结构说明
float运算结果。

父主题: FastMath

softmax​

函数功能​

快速softmax函数运算。

函数原型​

inline void softmax(std::vector<float>& digits);

参数说明​

参数名输入/输出说明
digits输入/输出float型的vector,原位进行softmax。

父主题: FastMath

sign​

函数功能​

符号函数,根据输入数字的符号返回1或-1。

函数原型​

inline flot sign(float x);

参数说明​

参数名输入/输出说明
x输入待判断符号的数字。

父主题: FastMath

FExp​

函数功能​

快速幂运算,单例模式。

函数原型​

inline float FastMath::FExp(const flaot x);

参数说明​

参数名输入/输出说明
x输入指数。

返回参数说明​

数据结构说明
float运算结果。

父主题: FastMath

在线提单