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
在线提单