function.hh File Reference
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include <boost/static_assert.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/preprocessor/punctuation/comma.hpp>
#include <roboptim/core/alloc.hh>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <log4cxx/logger.h>
#include <roboptim/core/fwd.hh>
#include <roboptim/core/indent.hh>
#include <roboptim/core/portability.hh>
#include <roboptim/core/detail/utility.hh>

Classes

struct  roboptim::GenericFunctionTraits< T >
 GenericFunction traits. More...
 
class  roboptim::GenericFunction< T >
 Define an abstract mathematical function ( $C^0$). More...
 
struct  roboptim::GenericFunctionTraits< EigenMatrixDense >
 Trait specializing GenericFunction for Eigen dense matrices. More...
 
struct  roboptim::GenericFunctionTraits< EigenMatrixSparse >
 Trait specializing GenericFunction for Eigen sparse matrices. More...
 

Namespaces

 roboptim
 defined(EIGEN_RUNTIME_NO_MALLOC) && !defined(ROBOPTIM_DO_NOT_CHECK_ALLOCATION)
 

Macros

#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
 
#define ROBOPTIM_GENERATE_TYPEDEFS_EIGEN_REF(NAME, TYPE)
 
#define ROBOPTIM_GENERATE_TYPEDEFS_EIGEN_REF_VEC(NAME, TYPE)
 
#define ROBOPTIM_GENERATE_TYPEDEFS_REF(NAME, TYPE)
 
#define ROBOPTIM_GENERATE_FWD_REFS(NAME)
 
#define ROBOPTIM_GENERATE_FWD_REFS_(NAME)
 
#define ROBOPTIM_GENERATE_TRAITS_REFS_(NAME)
 
#define ROBOPTIM_GENERATE_TRAITS_REFS_T(NAME, TRAITS)
 
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS(PARENT)
 
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS_(PARENT)
 
#define ROBOPTIM_STORAGE_ORDER   ColMajor
 

Functions

 BOOST_STATIC_ASSERT_MSG (Eigen::ROBOPTIM_STORAGE_ORDER==Eigen::ColMajor||Eigen::ROBOPTIM_STORAGE_ORDER==Eigen::RowMajor,"Wrong storage order provided by ROBOPTIM_STORAGE_ORDER.")
 ROBOPTIM_STORAGE_ORDER. More...
 
template<typename T >
std::ostream & roboptim::operator<< (std::ostream &o, const GenericFunction< T > &f)
 Override operator<< to handle function display. More...
 

Variables

static const int roboptim::StorageOrder = Eigen::ROBOPTIM_STORAGE_ORDER
 Default matrix storage order. More...
 

Macro Definition Documentation

#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS (   PARENT)
Value:
typedef PARENT parent_t; \
typedef parent_t::value_type value_type; \
typedef parent_t::size_type size_type; \
typedef parent_t::names_t names_t; \
#define ROBOPTIM_GENERATE_FWD_REFS(NAME)
Definition: function.hh:68
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS_ (   PARENT)
Value:
typedef PARENT parent_t; \
typedef typename parent_t::value_type value_type; \
typedef typename parent_t::size_type size_type; \
typedef typename parent_t::names_t names_t; \
#define ROBOPTIM_GENERATE_FWD_REFS_(NAME)
Definition: function.hh:73
#define ROBOPTIM_GENERATE_FWD_REFS (   NAME)
Value:
typedef parent_t::NAME##_t NAME##_t; \
typedef parent_t::NAME##_ref NAME##_ref; \
typedef parent_t::const_##NAME##_ref const_##NAME##_ref
#define ROBOPTIM_GENERATE_FWD_REFS_ (   NAME)
Value:
typedef typename parent_t::NAME##_t NAME##_t; \
typedef typename parent_t::NAME##_ref NAME##_ref; \
typedef typename parent_t::const_##NAME##_ref const_##NAME##_ref
#define ROBOPTIM_GENERATE_TRAITS_REFS_ (   NAME)
Value:
typedef typename GenericFunctionTraits<T>::NAME##_t NAME##_t; \
typedef typename GenericFunctionTraits<T>::NAME##_ref NAME##_ref; \
typedef typename GenericFunctionTraits<T>::const_##NAME##_ref const_##NAME##_ref
#define ROBOPTIM_GENERATE_TRAITS_REFS_T (   NAME,
  TRAITS 
)
Value:
typedef typename GenericFunctionTraits<TRAITS>::NAME##_t NAME##_t; \
typedef typename GenericFunctionTraits<TRAITS>::NAME##_ref NAME##_ref; \
typedef typename GenericFunctionTraits<TRAITS>::const_##NAME##_ref const_##NAME##_ref
#define ROBOPTIM_GENERATE_TYPEDEFS_EIGEN_REF (   NAME,
  TYPE 
)
Value:
typedef TYPE NAME##_t; \
typedef Eigen::Ref<NAME##_t> NAME##_ref; \
typedef const Eigen::Ref<const NAME##_t>& const_##NAME##_ref
#define ROBOPTIM_GENERATE_TYPEDEFS_EIGEN_REF_VEC (   NAME,
  TYPE 
)
Value:
typedef TYPE NAME##_t; \
typedef Eigen::Ref<NAME##_t, 0, detail::row_vector_stride<StorageOrder>::type> NAME##_ref; \
typedef const Eigen::Ref<const NAME##_t, 0, detail::row_vector_stride<StorageOrder>::type>& const_##NAME##_ref
#define ROBOPTIM_GENERATE_TYPEDEFS_REF (   NAME,
  TYPE 
)
Value:
typedef TYPE NAME##_t; \
typedef NAME##_t& NAME##_ref; \
typedef const NAME##_t& const_##NAME##_ref
#define ROBOPTIM_STORAGE_ORDER   ColMajor

Function Documentation

BOOST_STATIC_ASSERT_MSG ( Eigen::ROBOPTIM_STORAGE_ORDER  = =Eigen::ColMajor||Eigen::ROBOPTIM_STORAGE_ORDER==Eigen::RowMajor,
"Wrong storage order provided by ROBOPTIM_STORAGE_ORDER."   
)

ROBOPTIM_STORAGE_ORDER.