![]() |
OpenCV 4.12.0
开源计算机视觉
|
#include <opencv2/core/softfloat.hpp>
公共成员函数 | |
| softdouble () | |
| 默认构造函数。 | |
| softdouble (const double a) | |
| 从 double 构造。 | |
| 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 |
| Inf 状态指示器。 | |
| 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 |