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