roboptim::detail Namespace Reference

Classes

struct  PrecisionTrait
struct  AutopromoteTrait
struct  AutopromoteTrait< Plus< U, V > >
struct  AutopromoteTrait< Minus< U, V > >
struct  AutopromoteTrait< Product< U, V > >
struct  AutopromoteTrait< Scalar< U > >
struct  promote2
struct  promote2< T1, T2, 0 >
struct  PromoteTrait
struct  add_shared_ptr
 Transform a types list into a types list of shared pointers. More...
struct  shared_ptr_variant
 Generate a Boost.Variant of shared pointers from the static constraints types list. More...
struct  list_converter
 Converts CLIST to a boost::mpl::vector to ensure a similar behavior for codes using different random access sequences (vector, list, etc.). More...
struct  contains_base_of
 Whether a sequence of types contains a base of a given type. More...
struct  get_descendant
 Get the descendant among two relatives. More...
struct  check_constraint_type
 Checks whether C is a valid constraint type in CLIST. More...
struct  cast_constraint_type
 Get the constraint type of CLIST that best match C. More...
struct  derives_from_function
 Checks whether the function types derives from Function or SparseFunction. More...
struct  list_derives_from_function
 Checks whether all the constraints derive from Function or SparseFunction. More...
struct  ConvertConstraint
 Convert a constraint to a proper type. More...
struct  ConvertConstraintVariant
 Convert a constraint from a Boost.Variant to an adequate constraint type depending on the problem's constraints type. More...
struct  ProductDifferentiation
 Utility structure used for product differentiation. More...
struct  EvaluateConstraint
struct  ConstraintName
struct  EvaluateConstraintViolation
struct  LogJacobianConstraint
struct  printConstraint
struct  StateParameterPrintVisitor
 Visitor used to print state parameters (variant). More...

Functions

 ROBOPTIM_CORE_DECLARE_PRECISION (GenericFunction< EigenMatrixDense >, 1)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericFunction< EigenMatrixSparse >, 1)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericDifferentiableFunction< EigenMatrixDense >, 2)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericDifferentiableFunction< EigenMatrixSparse >, 2)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericTwiceDifferentiableFunction< EigenMatrixDense >, 3)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericTwiceDifferentiableFunction< EigenMatrixSparse >, 3)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericQuadraticFunction< EigenMatrixDense >, 3)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericQuadraticFunction< EigenMatrixSparse >, 3)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericLinearFunction< EigenMatrixDense >, 4)
 ROBOPTIM_CORE_DECLARE_PRECISION (GenericLinearFunction< EigenMatrixSparse >, 4)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericNumericQuadraticFunction< EigenMatrixDense >, GenericQuadraticFunction< EigenMatrixDense >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericNumericQuadraticFunction< EigenMatrixSparse >, GenericQuadraticFunction< EigenMatrixSparse >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericNumericLinearFunction< EigenMatrixDense >, GenericLinearFunction< EigenMatrixDense >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericNumericLinearFunction< EigenMatrixSparse >, GenericLinearFunction< EigenMatrixSparse >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericConstantFunction< EigenMatrixDense >, GenericLinearFunction< EigenMatrixDense >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericConstantFunction< EigenMatrixSparse >, GenericLinearFunction< EigenMatrixSparse >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericIdentityFunction< EigenMatrixDense >, GenericLinearFunction< EigenMatrixDense >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (GenericIdentityFunction< EigenMatrixSparse >, GenericLinearFunction< EigenMatrixSparse >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (Cos< EigenMatrixDense >, GenericDifferentiableFunction< EigenMatrixDense >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (Cos< EigenMatrixSparse >, GenericDifferentiableFunction< EigenMatrixSparse >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (Sin< EigenMatrixDense >, GenericDifferentiableFunction< EigenMatrixDense >)
 ROBOPTIM_CORE_DECLARE_AUTOPROMOTE (Sin< EigenMatrixSparse >, GenericDifferentiableFunction< EigenMatrixSparse >)
template<typename T >
std::ostream & impl_print (std::ostream &o, Eigen::Ref< T > t)
template<typename T >
std::ostream & impl_print (std::ostream &o, const T *t)
template<typename T >
std::ostream & impl_print (std::ostream &o, const T &t)
template<typename T >
void StateParameterPrint (std::ostream &o, const T &val)
 Print the value of a state parameter.
template<>
void StateParameterPrint< bool > (std::ostream &o, const bool &val)
template<>
void StateParameterPrint< std::string > (std::ostream &o, const std::string &val)
ROBOPTIM_DLLAPI void vector_to_array (Function::value_type *dst, Function::const_vector_ref src)
ROBOPTIM_DLLAPI void array_to_vector (Function::vector_ref dst, const Function::value_type *src)
template<typename T >
void jacobian_from_gradients (DifferentiableFunction::matrix_ref jac, const std::vector< const T * > &c, DifferentiableFunction::const_vector_ref x)

Function Documentation

void roboptim::detail::array_to_vector ( Function::vector_ref  dst,
const Function::value_type *  src 
)
template<typename T >
std::ostream& roboptim::detail::impl_print ( std::ostream &  o,
Eigen::Ref< T >  t 
)
template<typename T >
std::ostream& roboptim::detail::impl_print ( std::ostream &  o,
const T *  t 
)
template<typename T >
std::ostream& roboptim::detail::impl_print ( std::ostream &  o,
const T &  t 
)
template<typename T >
void roboptim::detail::jacobian_from_gradients ( DifferentiableFunction::matrix_ref  jac,
const std::vector< const T * > &  c,
DifferentiableFunction::const_vector_ref  x 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericNumericQuadraticFunction< EigenMatrixDense >  ,
GenericQuadraticFunction< EigenMatrixDense >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericNumericQuadraticFunction< EigenMatrixSparse >  ,
GenericQuadraticFunction< EigenMatrixSparse >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericNumericLinearFunction< EigenMatrixDense >  ,
GenericLinearFunction< EigenMatrixDense >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericNumericLinearFunction< EigenMatrixSparse >  ,
GenericLinearFunction< EigenMatrixSparse >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericConstantFunction< EigenMatrixDense >  ,
GenericLinearFunction< EigenMatrixDense >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericConstantFunction< EigenMatrixSparse >  ,
GenericLinearFunction< EigenMatrixSparse >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericIdentityFunction< EigenMatrixDense >  ,
GenericLinearFunction< EigenMatrixDense >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( GenericIdentityFunction< EigenMatrixSparse >  ,
GenericLinearFunction< EigenMatrixSparse >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( Cos< EigenMatrixDense >  ,
GenericDifferentiableFunction< EigenMatrixDense >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( Cos< EigenMatrixSparse >  ,
GenericDifferentiableFunction< EigenMatrixSparse >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( Sin< EigenMatrixDense >  ,
GenericDifferentiableFunction< EigenMatrixDense >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_AUTOPROMOTE ( Sin< EigenMatrixSparse >  ,
GenericDifferentiableFunction< EigenMatrixSparse >   
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericFunction< EigenMatrixDense >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericFunction< EigenMatrixSparse >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericDifferentiableFunction< EigenMatrixDense >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericDifferentiableFunction< EigenMatrixSparse >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericTwiceDifferentiableFunction< EigenMatrixDense >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericTwiceDifferentiableFunction< EigenMatrixSparse >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericQuadraticFunction< EigenMatrixDense >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericQuadraticFunction< EigenMatrixSparse >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericLinearFunction< EigenMatrixDense >  ,
 
)
roboptim::detail::ROBOPTIM_CORE_DECLARE_PRECISION ( GenericLinearFunction< EigenMatrixSparse >  ,
 
)
template<typename T >
void roboptim::detail::StateParameterPrint ( std::ostream &  o,
const T &  val 
)

Print the value of a state parameter.

Template Parameters:
Tvalue type.
Parameters:
valvalue.
Returns:
string describing the value.
template<>
void roboptim::detail::StateParameterPrint< bool > ( std::ostream &  o,
const bool &  val 
) [inline]
template<>
void roboptim::detail::StateParameterPrint< std::string > ( std::ostream &  o,
const std::string &  val 
) [inline]
void roboptim::detail::vector_to_array ( Function::value_type *  dst,
Function::const_vector_ref  src 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines