Public Types |
|
typedef uint16_t | Type |
|
typedef uint8_t | ConstantType |
|
typedef void(MNum::* | BoolType_ )() const |
Public Member Functions |
| | MNum () |
|
| MNum (const MVar &v) |
|
| MNum (const MNum &n) |
|
| MNum (bool b) |
|
| MNum (uint8_t v) |
|
| MNum (int8_t v) |
|
| MNum (uint16_t v) |
|
| MNum (int16_t v) |
|
| MNum (uint32_t v) |
|
| MNum (int32_t v) |
|
| MNum (uint64_t v) |
|
| MNum (int64_t v) |
|
| MNum (double v) |
|
| MNum (float v) |
| | MNum (size_t nR, size_t nC, double *data=0) |
|
| MNum (const MRational &r) |
|
| MNum (const MMatrix &m) |
|
| MNum (const MReal &x) |
|
Type | type () const |
|
mstr | toStr (bool concise=true) const |
|
ConstantType | asConstant () const |
|
double | asDouble () const |
|
double | toDouble () const |
|
int64_t | asLong () const |
|
int64_t | toLong () const |
|
const mrat & | asRat () const |
|
mrat & | asRat () |
|
mrat | toRat () const |
|
const mmat & | asMat () const |
|
mmat & | asMat () |
|
const mreal & | asReal () const |
|
mreal & | asReal () |
|
mreal | toReal () const |
| double & | operator() (size_t r, size_t c) |
| const double & | operator() (size_t r, size_t c) const |
|
MNum & | operator= (const MNum &n) |
|
MNum & | operator+= (const MNum &n) |
|
template<typename T > |
| MNum | operator+ (const T &t) const |
|
MNum | operator+ (const mrat &r) const |
|
MNum | operator++ (int) |
|
MNum & | operator++ () |
|
MNum & | operator-= (const MNum &n) |
|
template<typename T > |
| MNum | operator- (const T &t) const |
|
MNum | operator- (const mrat &r) const |
|
MNum | operator- () const |
|
MNum | operator-- (int) |
|
MNum & | operator-- () |
|
MNum & | operator*= (const MNum &n) |
|
template<typename T > |
| MNum | operator* (const T &t) const |
|
MNum | operator* (const mrat &r) const |
|
MNum & | operator/= (const MNum &n) |
|
template<typename T > |
| MNum | operator/ (const T &t) const |
|
MNum | operator/ (const mrat &r) const |
|
bool | operator< (const MNum &n) const |
|
template<typename T > |
| bool | operator< (const T &t) const |
|
bool | operator> (const MNum &n) const |
|
template<typename T > |
| bool | operator> (const T &t) const |
|
bool | operator<= (const MNum &n) const |
|
template<typename T > |
| bool | operator<= (const T &t) const |
|
bool | operator>= (const MNum &n) const |
|
template<typename T > |
| bool | operator>= (const T &t) const |
|
bool | operator== (const MNum &n) const |
|
template<typename T > |
| bool | operator== (const T &t) const |
|
bool | operator!= (const MNum &n) const |
|
template<typename T > |
| bool | operator!= (const T &t) const |
|
bool | isDefined () const |
| bool | isTrue () const |
| bool | isFalse () const |
| void | convertConstant () |
|
void | BoolStub_ () const |
|
| operator BoolType_ () const |
|
MNum | operator%= (const MNum &x) |
|
template<typename T > |
| MNum | operator% (const T &t) const |
Static Public Member Functions |
| static MNum | constant (ConstantType c) |
| static double | constantToFloat (ConstantType c) |
| static double | inf () |
| static double | negInf () |
| static double | nan () |
| static double | min () |
| static double | max () |
| static double | epsilon () |
Static Public Attributes |
|
static const Type | DefinedMask = 0x0020 |
|
static const Type | Undefined = 0x0010 |
|
static const Type | Constant = 0x0031 |
|
static const Type | Integer = 0x0032 |
|
static const Type | Rational = 0x0033 |
|
static const Type | Float = 0x0034 |
|
static const Type | Matrix = 0x0035 |
|
static const Type | Real = 0x0036 |
|
static const ConstantType | False = 0 |
|
static const ConstantType | True = 1 |