跳到主要内容

exp

FastMath

函数功能

类构造函数,创建数学函数类对象。

函数原型

FastMath();

父主题: FastMath

~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

在线提单