#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#include <boost/static_assert.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>
#include <roboptim/core/function.hxx>
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 |
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_DEFINE_FLAG_TYPE() typedef unsigned int flag_t |
#define | ROBOPTIM_ADD_FLAG(FLAG) |
#define | ROBOPTIM_STORAGE_ORDER ColMajor |
Enumerations | |
enum | roboptim::FunctionFlag { roboptim::ROBOPTIM_IS_FUNCTION = 1 << 0, roboptim::ROBOPTIM_IS_DIFFERENTIABLE = 1 << 1, roboptim::ROBOPTIM_IS_TWICE_DIFFERENTIABLE = 1 << 2, roboptim::ROBOPTIM_IS_QUADRATIC = 1 << 3, roboptim::ROBOPTIM_IS_NUMERIC_QUADRATIC = 1 << 4, roboptim::ROBOPTIM_IS_LINEAR = 1 << 5, roboptim::ROBOPTIM_IS_NUMERIC_LINEAR = 1 << 6, roboptim::ROBOPTIM_IS_POLYNOMIAL = 1 << 7, roboptim::ROBOPTIM_IS_CONSTANT = 1 << 8 } |
Bit flags describing the type of function. More... | |
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... | |
template<typename U , typename V > | |
boost::shared_ptr< V > | roboptim::castInto (boost::shared_ptr< U > &u) |
Cast a shared_ptr of function to a different function type. More... | |
template<typename U , typename V > | |
const boost::shared_ptr< V > | roboptim::castInto (const boost::shared_ptr< U > &u) |
Cast a shared_ptr of function to a different function type. More... | |
Variables | |
static const int | roboptim::StorageOrder = Eigen::ROBOPTIM_STORAGE_ORDER |
Default matrix storage order. More... | |
#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET |
#define ROBOPTIM_ADD_FLAG | ( | FLAG | ) |
#define ROBOPTIM_DEFINE_FLAG_TYPE | ( | ) | typedef unsigned int flag_t |
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS | ( | PARENT | ) |
#define ROBOPTIM_FUNCTION_FWD_TYPEDEFS_ | ( | PARENT | ) |
#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_GENERATE_TYPEDEFS_EIGEN_REF | ( | NAME, | |
TYPE | |||
) |
#define ROBOPTIM_GENERATE_TYPEDEFS_EIGEN_REF_VEC | ( | NAME, | |
TYPE | |||
) |
#define ROBOPTIM_GENERATE_TYPEDEFS_REF | ( | NAME, | |
TYPE | |||
) |
#define ROBOPTIM_STORAGE_ORDER ColMajor |
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.