function.hh File Reference
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include <boost/algorithm/string/replace.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/preprocessor/punctuation/comma.hpp>
#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>

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

namespace  roboptim
 

Meta-functions, functions and solver-related classes.


Defines

#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
#define EIGEN_RUNTIME_NO_MALLOC
#define ROBOPTIM_GENERATE_TYPEDEFS_EIGEN_REF(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_FUNCTION_FWD_TYPEDEFS(PARENT)
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS_(PARENT)

Functions

template<typename T >
std::ostream & roboptim::operator<< (std::ostream &o, const GenericFunction< T > &f)
 Override operator<< to handle function display.

Define Documentation

#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;            \
  ROBOPTIM_GENERATE_FWD_REFS(argument);   \
  ROBOPTIM_GENERATE_FWD_REFS(result);   \
  ROBOPTIM_GENERATE_FWD_REFS(vector);   \
  ROBOPTIM_GENERATE_FWD_REFS(matrix)
#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;           \
  ROBOPTIM_GENERATE_FWD_REFS_(argument);    \
  ROBOPTIM_GENERATE_FWD_REFS_(result);      \
  ROBOPTIM_GENERATE_FWD_REFS_(vector);      \
  ROBOPTIM_GENERATE_FWD_REFS_(matrix)
#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_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_REF (   NAME,
  TYPE 
)
Value:
typedef TYPE NAME##_t;        \
  typedef NAME##_t& NAME##_ref;       \
  typedef const NAME##_t& const_##NAME##_ref
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines