Go to the source code of this file.
Defines | |
| #define | J2K_MAX_MathState 7 |
Enumerations | |
| enum | MathState { Zero = 0, Positive = 1, Negative = 2, Valid = 1, PosInfinity = 3, NegInfinity = 4, NaN = 5, FPError = 6, Inf = 3, PosInf = 3, NegInf = 4, Pos = 1, Neg = 2 } |
Variables | |
| const int | MathStateLessThan [7][7] |
| const int | MathStateBiggerThan [7][7] |
| const int | MathStateEqualTo [7][7] |
| const MathState | MathStateAdd [7][7] |
| const MathState | MathStateSub [7][7] |
| const MathState | MathStateMult [7][7] |
| const MathState | MathStateDiv [7][7] |
| const char * | MathStateTxt [7] |
|
|
Definition at line 36 of file MathStat.hpp. |
|
|
Definition at line 38 of file MathStat.hpp. 00038 {
00039 Zero = 0, // Valid states
00040 Positive = 1, // Bigger than 0
00041 Negative = 2, // Smaller than 0
00042
00043 Valid = 1, // Calculate it for Add, Sub, Mult, Div, etc.
00044
00045 PosInfinity = 3, // Infinite
00046 NegInfinity = 4,
00047
00048 NaN = 5, // Unknown (Can be anything: e.g. 0/0 )
00049
00050 FPError = 6, // Float-Point error happened (i.e. Recalculate it)
00051
00052 Inf = 3, // Abbreviations (No additional cost for it)
00053 PosInf = 3, // Think of it as a compiler verified #define.
00054 NegInf = 4,
00055 Pos = 1,
00056 Neg = 2
00057 };
|
|
|
Initial value: {
{ Zero, Pos, Neg, PosInf, NegInf, NaN, FPError },
{ Pos, Pos, Valid, PosInf, NegInf, NaN, FPError },
{ Neg, Valid, Neg, PosInf, NegInf, NaN, FPError },
{ PosInf, PosInf, PosInf, PosInf, NaN, NaN, PosInf },
{ NegInf, NegInf, NegInf, NaN, NegInf, NaN, NegInf },
{ NaN, NaN, NaN, NaN, NaN, NaN, NaN },
{ FPError, FPError, FPError, PosInf, NegInf, NaN, FPError }
}Definition at line 95 of file MathStat.hpp. |
|
|
Initial value: {
{ 0, 0, 1, 0, 1, 6, 2 },
{ 1, 2, 1, 0, 1, 6, 2 },
{ 0, 0, 2, 0, 1, 6, 2 },
{ 1, 1, 1, 0, 1, 6, 1 },
{ 0, 0, 0, 0, 0, 0, 0 },
{ 6, 6, 6, 0, 6, 6, 6 },
{ 2, 2, 2, 0, 1, 6, 2 }
}Definition at line 72 of file MathStat.hpp. |
|
|
Initial value: {
{ NaN, Zero, Zero, NaN, NaN, NaN, Zero },
{ PosInf, Pos, Neg, Zero, Zero, NaN, FPError },
{ NegInf, Neg, Pos, Zero, Zero, NaN, FPError },
{ NaN, PosInf, NegInf, NaN, NaN, NaN, NaN },
{ NaN, NegInf, PosInf, NaN, NaN, NaN, NaN },
{ NaN, NaN, NaN, NaN, NaN, NaN, NaN },
{ NaN, FPError, FPError, NaN, NaN, NaN, NaN }
}Definition at line 130 of file MathStat.hpp. |
|
|
Initial value: {
{ 1, 0, 0, 0, 0, 6, 2 },
{ 0, 2, 0, 0, 0, 6, 2 },
{ 0, 0, 2, 0, 0, 6, 2 },
{ 0, 0, 0, 1, 0, 6, 0 },
{ 0, 0, 0, 0, 1, 6, 0 },
{ 6, 6, 6, 6, 6, 6, 6 },
{ 2, 2, 2, 0, 0, 6, 2 }
}Definition at line 83 of file MathStat.hpp. |
|
|
Initial value: {
{ 0, 1, 0, 1, 0, 6, 2 },
{ 0, 2, 0, 1, 0, 6, 2 },
{ 1, 1, 2, 1, 0, 6, 2 },
{ 0, 0, 0, 0, 0, 0, 0 },
{ 1, 1, 1, 1, 0, 6, 1 },
{ 6, 6, 6, 6, 0, 6, 6 },
{ 2, 2, 2, 1, 0, 6, 2 }
}Definition at line 60 of file MathStat.hpp. |
|
|
Initial value: {
{ Zero, Zero, Zero, NaN, NaN, NaN, Zero },
{ Zero, Pos, Neg, PosInf, NegInf, NaN, FPError },
{ Zero, Neg, Pos, NegInf, PosInf, NaN, FPError },
{ NaN, PosInf, NegInf, PosInf, NegInf, NaN, NaN },
{ NaN, NegInf, PosInf, NegInf, PosInf, NaN, NaN },
{ NaN, NaN, NaN, NaN, NaN, NaN, NaN },
{ Zero, FPError, FPError, NaN, NaN, NaN, FPError }
}Definition at line 117 of file MathStat.hpp. |
|
|
Initial value: {
{ Zero, Neg, Pos, NegInf, PosInf, NaN, FPError },
{ Pos, Valid, Pos, NegInf, PosInf, NaN, FPError },
{ Neg, Neg, Valid, NegInf, PosInf, NaN, FPError },
{ PosInf, PosInf, PosInf, NaN, PosInf, NaN, PosInf },
{ NegInf, NegInf, NegInf, NegInf, NaN, NaN, NegInf },
{ NaN, NaN, NaN, NaN, NaN, NaN, NaN },
{ FPError, FPError, FPError, NegInf, PosInf, NaN, FPError }
}Definition at line 106 of file MathStat.hpp. |
|
|
Initial value: {
"Zero",
"Pos",
"Neg",
"Inf",
"-Inf",
"NaN",
"Error"
}Definition at line 144 of file MathStat.hpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001