![]() |
OpenCV 4.12.0
开源计算机视觉
|
#include <opencv2/core/softfloat.hpp>
公共成员函数 | |
| softfloat () | |
| 默认构造函数。 | |
| softfloat (const float a) | |
| 从 float 构造。 | |
| softfloat (const int32_t) | |
| softfloat (const int64_t) | |
| softfloat (const softfloat &c) | |
| 复制构造函数。 | |
| softfloat (const uint32_t) | |
| 从整数构造。 | |
| softfloat (const uint64_t) | |
| int | getExp () const |
| 获取基于 0 的指数。 | |
| softfloat | getFrac () const |
| 获取小数部分。 | |
| bool | getSign () const |
| 获取符号位。 | |
| bool | isInf () const |
| Inf 状态指示器。 | |
| bool | isNaN () const |
| NaN 状态指示器。 | |
| bool | isSubnormal () const |
| 次正规数指示器。 | |
| operator float () const | |
| operator softdouble () const | |
| 类型转换 | |
| bool | operator!= (const softfloat &) const |
| softfloat | operator% (const softfloat &) const |
| 取余运算符。 | |
| softfloat & | operator%= (const softfloat &a) |
| softfloat | operator* (const softfloat &) const |
| softfloat & | operator*= (const softfloat &a) |
| softfloat | operator+ (const softfloat &) const |
| 基本算术运算。 | |
| softfloat & | operator+= (const softfloat &a) |
| softfloat | operator- () const |
| softfloat | operator- (const softfloat &) const |
| softfloat & | operator-= (const softfloat &a) |
| softfloat | operator/ (const softfloat &) const |
| softfloat & | operator/= (const softfloat &a) |
| bool | operator< (const softfloat &) const |
| bool | operator<= (const softfloat &) const |
| softfloat & | operator= (const softfloat &c) |
| 赋值构造函数。 | |
| bool | operator== (const softfloat &) const |
| 比较运算。 | |
| bool | operator> (const softfloat &) const |
| bool | operator>= (const softfloat &) const |
| softfloat | setExp (int e) const |
| 构造一个具有新 0 基指数的副本。 | |
| softfloat | setFrac (const softfloat &s) const |
| 构造一个具有提供的尾数的副本。 | |
| softfloat | setSign (bool sign) const |
| 构造一个具有新符号位的副本。 | |
静态公共成员函数 | |
| static softfloat | eps () |
| 1 和下一个可表示值之间的差。 | |
| static const softfloat | fromRaw (const uint32_t a) |
| 从原始数据构造。 | |
| static softfloat | inf () |
| 正无穷大常数。 | |
| static softfloat | max () |
| 最大有限值。 | |
| static softfloat | min () |
| 最小归一化值。 | |
| static softfloat | nan () |
| 默认 NaN 常数。 | |
| static softfloat | one () |
| 1 常数。 | |
| static softfloat | pi () |
| 正确的 pi 近似值。 | |
| static softfloat | zero () |
| 零常数。 | |
公共属性 | |
| uint32_t | v |