casadi_limits class More...
#include <casadi_limits.hpp>
The following class, which acts as a complements to the standard std::numeric_limits class, allows specifying certain properties of scalar objects. The template can be specialized for e.g. symbolic scalars
Extra doc: https://github.com/casadi/casadi/wiki/L_1ak
Definition at line 48 of file casadi_limits.hpp.
Static Public Member Functions | |
static bool | is_zero (const T &val) |
static bool | is_equal (const T &x, const T &y, casadi_int depth) |
static bool | is_almost_zero (const T &val, double tol) |
static bool | is_one (const T &val) |
static bool | is_minus_one (const T &val) |
static bool | is_constant (const T &val) |
static bool | is_integer (const T &val) |
static bool | is_inf (const T &val) |
static bool | is_minus_inf (const T &val) |
static bool | is_nan (const T &val) |
Static Public Attributes | |
static const T | zero = T(0) |
static const T | one = 1 |
static const T | two = 2 |
static const T | minus_one = -1 |
|
inlinestatic |
Definition at line 56 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 65 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 53 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 71 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 68 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 74 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 62 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 77 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 59 of file casadi_limits.hpp.
|
inlinestatic |
Definition at line 50 of file casadi_limits.hpp.
|
static |
Definition at line 83 of file casadi_limits.hpp.
|
static |
Definition at line 81 of file casadi_limits.hpp.
|
static |
Definition at line 82 of file casadi_limits.hpp.
|
static |
Definition at line 80 of file casadi_limits.hpp.