![]() |
OpenCV 4.10.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 () |
| 正确的 pi 近似值。 | |
| static softdouble | zero () |
| 零常数。 | |
公有属性 | |
| uint64_t | v |
1.9.8