All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::detail Namespace Reference

Classes

struct  CachedFunctionTypes
 
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  BlockProvider
 Gives access to a std::vector of std::pair<size_t, size_t> representing blocks of input Those blocks are needed even if the function is not differentiable, making it easier for us to define it in a exterior class to then use it transparently. More...
 
struct  StructuredInputJacobianInternal
 This class gives access to the getJacobianBlock() method, whose implementation is to be specialized according to the type of matrix handled by the function. More...
 
struct  StructuredInputJacobianInternal< FuncType, roboptim::EigenMatrixDense >
 DenseMatrix specialization of the getJacobianBlock() method provider. More...
 
struct  StructuredInputJacobianInternal< FuncType, roboptim::EigenMatrixSparse >
 SparseMatrix specialization of the getJacobianBlock() method provider. More...
 
class  StructuredInput
 Provides utility methods to describe the input format of a function. More...
 
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  is_eigen_type
 Check whether the type provided is an Eigen type. More...
 
struct  aligned_vector_type
 Return an Eigen-aligned std::vector if required, else use the default allocator. More...
 
struct  const_eigen_ref
 Return the type of a const reference to an Eigen matrix, using Eigen's Ref. More...
 
struct  const_ref
 Return the proper const reference type of a given type. More...
 
struct  row_vector_stride
 Get the matrix stride type for a row vector, given a matrix storage order. 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  derives_from_differentiable_function
 Checks whether the function type derives from DifferentiableFunction or DifferentiableSparseFunction. More...
 
struct  derives_from_twice_differentiable_function
 Checks whether the function type derives from TwiceDifferentiableFunction or TwiceDifferentiableSparseFunction. More...
 
struct  derives_from_ntimes_derivable_function
 Checks whether the function type derives from NTimesDerivableFunction. More...
 
struct  list_derives_from_function
 Checks whether all the constraints derive from Function or SparseFunction. More...
 
struct  is_compatible_list
 Check that CLIST_ is a subset of CLIST (i.e. 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  ConcatenateTypes
 
struct  ProductDifferentiation
 Utility structure used for product differentiation. More...
 
struct  EvaluateConstraintViolation
 
struct  LogJacobianConstraint
 
struct  printConstraint
 
struct  StateParameterPrintVisitor
 Visitor used to print state parameters (variant). More...
 
class  DisableFPE
 Helper class used to disable floating-point exceptions. More...
 
struct  NoopDeleter
 Custom deleter that does not delete anything. More...
 
struct  PrintSolverParameter
 

Typedefs

typedef void * fenv_t
 ROBOPTIM_HAS_FENV_H. 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 Derived >
Eigen::Block< Derived > getBlock (Eigen::SparseMatrixBase< Derived > &m, int colStart, int colLength)
 
template<typename T >
void scale_jacobian_row (typename roboptim::Problem< T >::jacobian_t &j, typename roboptim::Problem< T >::size_type ri, const typename roboptim::Problem< T >::value_type &s)
 
template<typename T >
void scale_jacobian_col (typename roboptim::Problem< T >::jacobian_t &j, typename roboptim::Problem< T >::size_type ci, const typename roboptim::Problem< T >::value_type &s)
 
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. More...
 
template<>
void StateParameterPrint< bool > (std::ostream &o, const bool &val)
 
template<>
void StateParameterPrint< std::string > (std::ostream &o, const std::string &val)
 
ROBOPTIM_CORE_DLLAPI void vector_to_array (Function::value_type *dst, Function::const_vector_ref src)
 ROBOPTIM_HAS_FENV_H. More...
 
ROBOPTIM_CORE_DLLAPI void array_to_vector (Function::vector_ref dst, const Function::value_type *src)
 
template<typename T >
void jacobian_from_gradients (Function::matrix_ref jac, const std::vector< const T * > &c, Function::const_vector_ref x)
 

Typedef Documentation

typedef void* roboptim::detail::fenv_t

ROBOPTIM_HAS_FENV_H.

Function Documentation

void roboptim::detail::array_to_vector ( Function::vector_ref  dst,
const Function::value_type *  src 
)
template<typename Derived >
Eigen::Block<Derived> roboptim::detail::getBlock ( Eigen::SparseMatrixBase< Derived > &  m,
int  colStart,
int  colLength 
)
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 ( Function::matrix_ref  jac,
const std::vector< const T * > &  c,
Function::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::scale_jacobian_col ( typename roboptim::Problem< T >::jacobian_t &  j,
typename roboptim::Problem< T >::size_type  ci,
const typename roboptim::Problem< T >::value_type &  s 
)
inline
template<typename T >
void roboptim::detail::scale_jacobian_row ( typename roboptim::Problem< T >::jacobian_t &  j,
typename roboptim::Problem< T >::size_type  ri,
const typename roboptim::Problem< T >::value_type &  s 
)
inline
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 
)

ROBOPTIM_HAS_FENV_H.