List of all members | Static Public Member Functions | Static Public Attributes
casadi::casadi_limits< T > Class Template Reference

casadi_limits class More...

#include <casadi_limits.hpp>

Detailed Description

template<class T>
class casadi::casadi_limits< T >

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

Author
Joel Andersson
Date
2011
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
 

Member Function Documentation

◆ is_almost_zero()

template<class T >
static bool casadi::casadi_limits< T >::is_almost_zero ( const T &  val,
double  tol 
)
inlinestatic

Definition at line 56 of file casadi_limits.hpp.

◆ is_constant()

template<class T >
static bool casadi::casadi_limits< T >::is_constant ( const T &  val)
inlinestatic

Definition at line 65 of file casadi_limits.hpp.

◆ is_equal()

template<class T >
static bool casadi::casadi_limits< T >::is_equal ( const T &  x,
const T &  y,
casadi_int  depth 
)
inlinestatic

Definition at line 53 of file casadi_limits.hpp.

◆ is_inf()

template<class T >
static bool casadi::casadi_limits< T >::is_inf ( const T &  val)
inlinestatic

Definition at line 71 of file casadi_limits.hpp.

◆ is_integer()

template<class T >
static bool casadi::casadi_limits< T >::is_integer ( const T &  val)
inlinestatic

Definition at line 68 of file casadi_limits.hpp.

◆ is_minus_inf()

template<class T >
static bool casadi::casadi_limits< T >::is_minus_inf ( const T &  val)
inlinestatic

Definition at line 74 of file casadi_limits.hpp.

◆ is_minus_one()

template<class T >
static bool casadi::casadi_limits< T >::is_minus_one ( const T &  val)
inlinestatic

Definition at line 62 of file casadi_limits.hpp.

◆ is_nan()

template<class T >
static bool casadi::casadi_limits< T >::is_nan ( const T &  val)
inlinestatic

Definition at line 77 of file casadi_limits.hpp.

◆ is_one()

template<class T >
static bool casadi::casadi_limits< T >::is_one ( const T &  val)
inlinestatic

Definition at line 59 of file casadi_limits.hpp.

◆ is_zero()

template<class T >
static bool casadi::casadi_limits< T >::is_zero ( const T &  val)
inlinestatic

Definition at line 50 of file casadi_limits.hpp.

Member Data Documentation

◆ minus_one

template<class T >
const T casadi::casadi_limits< T >::minus_one = -1
static

Definition at line 83 of file casadi_limits.hpp.

◆ one

template<class T >
const T casadi::casadi_limits< T >::one = 1
static

Definition at line 81 of file casadi_limits.hpp.

◆ two

template<class T >
const T casadi::casadi_limits< T >::two = 2
static

Definition at line 82 of file casadi_limits.hpp.

◆ zero

template<class T >
const T casadi::casadi_limits< T >::zero = T(0)
static

Definition at line 80 of file casadi_limits.hpp.


The documentation for this class was generated from the following file: