跳到主要内容

FExp

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

Sigmoid

函数功能

快速sigmoid函数运算,单例模式。

函数原型

inline float FastMath::Sigmod(float x);

参数说明

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

返回参数说明

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

父主题: FastMath

Softmax

函数功能

快速归一化指数函数运算,单例模式。

函数原型

void FastMath::SoftMax(std::vector<float> &digits);

参数说明

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

父主题: FastMath

sign

函数功能

快速符号函数运算,单例模式。

函数原型

inline float FastMath::sign(float x);

参数说明

参数名输入/输出说明
x输入float型。

返回参数说明

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

父主题: FastMath

在线提单