Drake
Drake C++ Documentation
soft_min_max.h File Reference
#include <vector>
Include dependency graph for soft_min_max.h:

Namespaces

 drake
 
 drake::math
 

Functions

template<typename T >
SoftOverMax (const std::vector< T > &x, double alpha=1.0)
 Computes a smooth over approximation of max function, namely SoftOverMax(x) >= max(x). More...
 
template<typename T >
SoftUnderMax (const std::vector< T > &x, double alpha=1.0)
 Computes a smooth under approximation of max function, namely SoftUnderMax(x) <= max(x). More...
 
template<typename T >
SoftOverMin (const std::vector< T > &x, double alpha=1.0)
 Computes a smooth over approximation of min function, namely SoftOverMin(x) >= min(x). More...
 
template<typename T >
SoftUnderMin (const std::vector< T > &x, double alpha=1.0)
 Computes a smooth under approximation of min function, namely SoftUnderMin(x) <= min(x). More...