defined(EIGEN_RUNTIME_NO_MALLOC) && !defined(ROBOPTIM_DO_NOT_CHECK_ALLOCATION) More...
Namespaces | |
namespace | callback |
namespace | detail |
namespace | fg |
namespace | finiteDifferenceGradientPolicies |
Contains finite difference gradients policies. | |
namespace | visualization |
Graphical visualization. | |
Classes | |
class | LRUCache |
LRU (Least Recently Used) cache. More... | |
struct | Hasher |
Hash generator for argument vector. More... | |
class | CachedFunction |
Store previous function computation. More... | |
class | BadGradient |
Exception thrown when a gradient check fails. More... | |
class | BadJacobian |
Exception thrown when a Jacobian check fails. More... | |
class | GenericFiniteDifferenceGradient |
Compute automatically a gradient with finite differences. More... | |
class | DerivableParametrizedFunction |
Parametrized function with parameter derivative available. More... | |
struct | derivativeSize< GenericFunction< T > > |
struct | derivativeSize< GenericDifferentiableFunction< T > > |
struct | derivativeSize< GenericTwiceDifferentiableFunction< T > > |
struct | derivativeSize< NTimesDerivableFunction< N > > |
class | GenericDifferentiableFunction |
Define an abstract derivable function ( \(C^1\)). More... | |
class | GenericConstantFunction |
Constant function. More... | |
class | Cos |
Cos function. More... | |
class | GenericIdentityFunction |
Identity function. More... | |
class | Polynomial |
Polynomial function. More... | |
class | Sin |
Sin function. More... | |
class | FunctionPool |
A pool of functions that will be processed together. More... | |
struct | GenericFunctionTraits |
GenericFunction traits. More... | |
class | GenericFunction |
Define an abstract mathematical function ( \(C^0\)). More... | |
struct | GenericFunctionTraits< EigenMatrixDense > |
Trait specializing GenericFunction for Eigen dense matrices. More... | |
struct | GenericFunctionTraits< EigenMatrixSparse > |
Trait specializing GenericFunction for Eigen sparse matrices. More... | |
class | NoSolution |
Tag a result if no solution has been found. More... | |
struct | EigenMatrixDense |
Tag type for functions using Eigen dense matrices. More... | |
struct | EigenMatrixSparse |
Tag type for functions using Eigen sparse matrices. More... | |
class | Minus |
Subtract two RobOptim functions. More... | |
class | Plus |
Sum two RobOptim functions. More... | |
class | Product |
Product of two RobOptim functions. More... | |
class | Scalar |
Multiply by a constant scalar value. More... | |
class | GenericNumericLinearFunction |
Build a linear function from a vector and a matrix. More... | |
class | GenericNumericQuadraticFunction |
Build a quadratic function from a matrix and a vector. More... | |
class | GenericTwiceDifferentiableFunction |
Define an abstract function which is twice-derivable ( \(C^2\)). More... | |
class | GenericLinearFunction |
Define an abstract linear function. More... | |
class | GenericQuadraticFunction |
Define an abstract quadratic function. More... | |
class | Problem |
class | Solver |
Solver for a specific problem class. More... | |
class | SolverFactory |
Define a solver factory that instanciate the plug-ins. More... | |
class | NTimesDerivableFunction |
Define a \(\mathbb{R} \rightarrow \mathbb{R}^m\) function, derivable n times ( \(n \geq 2\)). More... | |
struct | derivativeSize |
class | OptimizationLogger |
Log the optimization process (values, Jacobians, time taken etc.). More... | |
class | GenericSolver |
Abstract interface satisfied by all solvers. More... | |
class | NTimesDerivableFunction< 2 > |
Explicit specialization for the stop case of NTimesDerivable class. More... | |
class | Bind |
Bind some function input to a constant value. More... | |
class | Chain |
Chain two RobOptim functions. More... | |
class | Concatenate |
Concatenate the output of two functions. More... | |
class | Derivative |
Return the derivative of a function w.r.t. More... | |
class | Map |
Apply a function several times to an input vector. More... | |
class | SelectionById |
Select part of a function. More... | |
class | Selection |
Select a block of a function's output. More... | |
class | Split |
Select an element of a function's output. More... | |
class | ParametrizedFunction |
Define an abstract parametrized mathematical function ( \(C^0\)). More... | |
class | GenericDummySolverLastState |
Dummy solver which always fails, but returns the last state of the solver. More... | |
class | DummySolverTd |
Dummy solver which always fails. More... | |
class | GenericDummySolver |
Dummy solver which always fails. More... | |
class | ResultAnalyzer |
Analyze optimization results. More... | |
class | ResultWithWarnings |
Warnings have been merged to Result to simplify the API. More... | |
class | Result |
Represents the solution of an optimization problem. More... | |
class | ScalingHelper |
Helper class used to help the user find good scaling parameters. More... | |
class | SolverCallback |
Solver per-iteration callback wrapper. More... | |
class | SolverError |
Base exception class for solving errors. More... | |
struct | StateParameter |
Solver state parameters type. More... | |
class | SolverState |
State of the solver. More... | |
class | SolverWarning |
Exception used for non-critical errors during optimization. More... | |
struct | Parameter |
Solver parameter type. More... | |
class | GenericSumOfC1Squares |
Generic sum of the squares of differentiable functions. More... | |
Enumerations | |
enum | FunctionFlag { ROBOPTIM_IS_FUNCTION = 1 << 0, ROBOPTIM_IS_DIFFERENTIABLE = 1 << 1, ROBOPTIM_IS_TWICE_DIFFERENTIABLE = 1 << 2, ROBOPTIM_IS_QUADRATIC = 1 << 3, ROBOPTIM_IS_NUMERIC_QUADRATIC = 1 << 4, ROBOPTIM_IS_LINEAR = 1 << 5, ROBOPTIM_IS_NUMERIC_LINEAR = 1 << 6, ROBOPTIM_IS_POLYNOMIAL = 1 << 7, ROBOPTIM_IS_CONSTANT = 1 << 8 } |
Bit flags describing the type of function. More... | |
Functions | |
ROBOPTIM_CORE_DLLAPI bool | is_malloc_allowed_update (bool update=false, bool new_value=false) |
Update the static variable used for Eigen::set_is_malloc_allowed. More... | |
bool | set_is_malloc_allowed (bool allow) |
Manage the calls to Eigen::set_is_malloc_allowed. More... | |
bool | is_malloc_allowed () |
Whether dynamic allocation is allowed. More... | |
template<typename K , typename V , typename H > | |
std::ostream & | operator<< (std::ostream &o, const LRUCache< K, V, H > &cache) |
ROBOPTIM_CORE_DLLAPI void | assertion_failed (char const *expr, char const *function, char const *file, long line) |
Handler called when an insertion fails. More... | |
ROBOPTIM_CORE_DLLAPI void | assertion_failed_msg (char const *expr, char const *msg, char const *function, char const *file, long line) |
Handler called when an insertion fails, with an extra error message. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &o, const BadGradient< T > &f) |
Override operator<< to handle exception display. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &o, const BadJacobian< T > &f) |
Override operator<< to handle exception display. More... | |
template<typename T > | |
bool | checkGradient (const GenericDifferentiableFunction< T > &function, typename GenericDifferentiableFunction< T >::size_type functionId, typename GenericDifferentiableFunction< T >::const_argument_ref x, typename GenericDifferentiableFunction< T >::value_type threshold=finiteDifferenceThreshold, typename GenericDifferentiableFunction< T >::value_type fd_eps=finiteDifferenceEpsilon) |
Check if a gradient is valid. More... | |
template<typename T > | |
void | checkGradientAndThrow (const GenericDifferentiableFunction< T > &function, typename GenericDifferentiableFunction< T >::size_type functionId, typename GenericDifferentiableFunction< T >::const_argument_ref x, typename GenericDifferentiableFunction< T >::value_type threshold=finiteDifferenceThreshold, typename GenericDifferentiableFunction< T >::value_type fd_eps=finiteDifferenceEpsilon) throw (BadGradient<T>) |
template<typename T > | |
bool | checkJacobian (const GenericDifferentiableFunction< T > &function, typename GenericDifferentiableFunction< T >::const_argument_ref x, typename GenericDifferentiableFunction< T >::value_type threshold=finiteDifferenceThreshold, typename GenericDifferentiableFunction< T >::value_type fd_eps=finiteDifferenceEpsilon) |
Check if a Jacobian is valid. More... | |
template<typename T > | |
void | checkJacobianAndThrow (const GenericDifferentiableFunction< T > &function, typename GenericDifferentiableFunction< T >::const_argument_ref x, typename GenericDifferentiableFunction< T >::value_type threshold=finiteDifferenceThreshold, typename GenericDifferentiableFunction< T >::value_type fd_eps=finiteDifferenceEpsilon) throw (BadJacobian<T>) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &o, const GenericFunction< T > &f) |
Override operator<< to handle function display. More... | |
template<typename U , typename V > | |
boost::shared_ptr< V > | 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 > | castInto (const boost::shared_ptr< U > &u) |
Cast a shared_ptr of function to a different function type. More... | |
template<typename T > | |
std::string | typeString () |
Return a string describing the type of T. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | operator<< (std::ostream &o, const GenericSolver &gs) |
Override operator<< to handle solver display. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | operator<< (std::ostream &o, const NoSolution &ns) |
Override operator<< to display ``no solution'' objects. More... | |
ROBOPTIM_CORE_DLLAPI long int & | indent (std::ostream &o) |
The current indentation level for o. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | incindent (std::ostream &o) |
Increment the indentation. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | decindent (std::ostream &o) |
Decrement the indentation. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | resetindent (std::ostream &o) |
Reset the indentation. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | iendl (std::ostream &o) |
Print an end of line, then set the indentation. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | incendl (std::ostream &o) |
Increment the indentation, print an end of line, and set the indentation. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | decendl (std::ostream &o) |
Decrement the indentation, print an end of line, and set the indentation. More... | |
template<typename U > | |
boost::shared_ptr< Bind< U > > | bind (boost::shared_ptr< U > origin, const typename Bind< U >::boundValues_t &boundValues) |
template<typename U , typename V > | |
boost::shared_ptr< Chain< U, V > > | chain (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
Chain two RobOptim functions. More... | |
template<typename U , typename V > | |
boost::shared_ptr< Concatenate < typename detail::PromoteTrait< U, V > ::T_promote > > | concatenate (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U > | |
boost::shared_ptr< Derivative < U > > | derivative (boost::shared_ptr< U > origin, typename Derivative< U >::size_type variableId=0) |
template<typename U > | |
boost::shared_ptr< Map< U > > | map (boost::shared_ptr< U > origin, typename U::size_type repeat) |
template<typename U , typename V > | |
boost::shared_ptr< Minus< U, V > > | minus (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U , typename V > | |
boost::shared_ptr< Minus< U, V > > | operator- (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U , typename V > | |
boost::shared_ptr< Plus< U, V > > | plus (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U , typename V > | |
boost::shared_ptr< Plus< U, V > > | operator+ (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U , typename V > | |
boost::shared_ptr< Product< U, V > > | product (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U , typename V > | |
boost::shared_ptr< Product< U, V > > | operator* (boost::shared_ptr< U > left, boost::shared_ptr< V > right) |
template<typename U > | |
boost::shared_ptr< Scalar< U > > | scalar (boost::shared_ptr< U > origin, typename Scalar< U >::size_type start=0, typename Scalar< U >::size_type size=1) |
template<typename U > | |
boost::shared_ptr< Scalar< U > > | operator* (typename Scalar< U >::value_type scalar, boost::shared_ptr< U > origin) |
template<typename U > | |
boost::shared_ptr< Scalar< U > > | operator* (boost::shared_ptr< U > origin, typename Scalar< U >::value_type scalar) |
template<typename U > | |
boost::shared_ptr< U > | operator+ (boost::shared_ptr< U > origin) |
template<typename U > | |
boost::shared_ptr< Scalar< U > > | operator- (boost::shared_ptr< U > origin) |
template<typename U > | |
boost::shared_ptr < SelectionById< U > > | selectionById (boost::shared_ptr< U > origin, std::vector< bool > selector) |
template<typename U > | |
boost::shared_ptr< Selection< U > > | selection (boost::shared_ptr< U > origin, typename Selection< U >::size_type start=0, typename Selection< U >::size_type size=1) |
template<typename P , typename C > | |
void | addNonScalarConstraint (P &problem, boost::shared_ptr< C > constraint, std::vector< Function::interval_t > interval, std::vector< Function::value_type > scale=std::vector< Function::value_type >()) |
template<typename F > | |
std::ostream & | operator<< (std::ostream &o, const ParametrizedFunction< F > &f) |
Override operator<< to handle function display. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &o, const Problem< T > &pb) |
Override operator<< to handle problem display. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | operator<< (std::ostream &o, const Result &r) |
Override operator<< to handle result display. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &o, const ScalingHelper< T > &sh) |
Override operator<< to handle scaling helper display. More... | |
template<typename S > | |
std::ostream & | operator<< (std::ostream &o, const SolverCallback< S > &c) |
ROBOPTIM_CORE_DLLAPI std::ostream & | operator<< (std::ostream &o, const SolverError &e) |
Override operator<< to handle error display. More... | |
template<typename S > | |
S * | unionCast (void *ptr) |
template<typename F > | |
std::ostream & | operator<< (std::ostream &o, const StateParameter< F > ¶meter) |
Override operator<< to display ``parameters'' objects. More... | |
template<typename P > | |
std::ostream & | operator<< (std::ostream &o, const SolverState< P > &state) |
Override operator<< to display ``parameters'' objects. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | operator<< (std::ostream &o, const SolverWarning &w) |
Override operator<< to handle warning display. More... | |
ROBOPTIM_CORE_DLLAPI std::ostream & | operator<< (std::ostream &o, const Parameter ¶meter) |
Override operator<< to display ``parameters'' objects. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &, const std::vector< T > &) |
Display a vector. More... | |
template<typename T1 , typename T2 > | |
std::ostream & | operator<< (std::ostream &, const std::pair< T1, T2 > &) |
Display a pair. More... | |
template<typename T1 , typename T2 > | |
std::ostream & | operator<< (std::ostream &, const std::map< T1, T2 > &) |
Display a map. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &, const Eigen::MatrixBase< T > &) |
Display an Eigen object with the appropriate IOFormat. More... | |
ROBOPTIM_CORE_DLLAPI const std::string | demangle (const char *name) |
Demangle (if available). More... | |
ROBOPTIM_CORE_DLLAPI GenericFunctionTraits < EigenMatrixDense >::matrix_t | sparse_to_dense (GenericFunctionTraits< EigenMatrixSparse >::const_matrix_ref m) |
Convert a sparse matrix into a dense matrix. More... | |
ROBOPTIM_CORE_DLLAPI GenericFunctionTraits < EigenMatrixDense >::vector_t | sparse_to_dense (GenericFunctionTraits< EigenMatrixSparse >::const_gradient_ref v) |
Convert a sparse vector into a dense vector. More... | |
ROBOPTIM_CORE_DLLAPI GenericFunctionTraits < EigenMatrixDense > ::gradient_t | toDense (GenericFunctionTraits< EigenMatrixSparse >::const_gradient_ref g) |
Convert an input gradient to a dense gradient (e.g. More... | |
ROBOPTIM_CORE_DLLAPI GenericFunctionTraits < EigenMatrixDense >::matrix_t | toDense (GenericFunctionTraits< EigenMatrixSparse >::const_matrix_ref m) |
Convert an input matrix to a dense matrix (e.g. More... | |
ROBOPTIM_CORE_DLLAPI GenericFunctionTraits < EigenMatrixDense > ::const_matrix_ref | toDense (GenericFunctionTraits< EigenMatrixDense >::const_matrix_ref m) |
Convert an input matrix to a dense matrix (e.g. More... | |
ROBOPTIM_CORE_DLLAPI bool | allclose (const Eigen::SparseMatrix< double > &a, const Eigen::SparseMatrix< double > &b, double rtol=Eigen::NumTraits< double >::dummy_precision(), double atol=Eigen::NumTraits< double >::epsilon()) |
Compare sparse vectors (matrices) using both relative and absolute tolerances. More... | |
ROBOPTIM_CORE_DLLAPI bool | allclose (const Eigen::Ref< const Eigen::MatrixXd > &a, const Eigen::Ref< const Eigen::MatrixXd > &b, double rtol=Eigen::NumTraits< double >::dummy_precision(), double atol=Eigen::NumTraits< double >::epsilon()) |
Compare dense vectors (matrices) using both relative and absolute tolerances. More... | |
template<typename M , typename B > | |
void | copySparseBlock (M &m, const B &b, Function::size_type startRow, Function::size_type startCol, bool compress=false) |
Copy a sparse block into a sparse matrix. More... | |
template<typename M , typename B > | |
void | updateSparseBlock (M &m, const B &b, Function::size_type startRow, Function::size_type startCol) |
Update a sparse block of a sparse matrix. More... | |
double | normalize (double x, double eps=1e-8) |
Apply normalize to a scalar. More... | |
template<typename T > | |
T | normalize (const T &x, double eps=1e-8) |
Apply normalize to each element of an Eigen vector. More... | |
ROBOPTIM_CORE_DLLAPI std::vector< std::string > | split (const std::string &s, char d) |
Split a string on a given delimiter. More... | |
GenericFunctionTraits < EigenMatrixDense > ::const_gradient_ref | toDense (GenericFunctionTraits< EigenMatrixDense >::const_gradient_ref m) |
Variables | |
static const double | finiteDifferenceThreshold = 1e-4 |
Default threshold for checkGradient. More... | |
static const double | finiteDifferenceEpsilon = 1e-8 |
Default epsilon for finite difference class. More... | |
static const int | StorageOrder = Eigen::ROBOPTIM_STORAGE_ORDER |
Default matrix storage order. More... | |
ROBOPTIM_ALLOW_ATTRIBUTES_ON template class | GenericFunction< EigenMatrixDense > |
defined(EIGEN_RUNTIME_NO_MALLOC) && !defined(ROBOPTIM_DO_NOT_CHECK_ALLOCATION)
Meta-functions, functions and solver-related classes.
linux
ROBOPTIM_CHECK_ALLOCATION
Legacy name of TwiceDifferentiableFunction.
Legacy name of TwiceDifferentiableSparseFunction.
Dense differentiable function.
Sparse differentiable function.
typedef GenericDummySolverLastState<EigenMatrixSparse> roboptim::DummyDifferentiableSparseSolverLastState |
Dense function.
Sparse function.
Legacy name of DifferentiableFunction.
typedef GenericTwiceDifferentiableFunction<EigenMatrixSparse> roboptim::TwiceDifferentiableSparseFunction |
bool roboptim::allclose | ( | const Eigen::SparseMatrix< double > & | a, |
const Eigen::SparseMatrix< double > & | b, | ||
double | rtol = Eigen::NumTraits<double>::dummy_precision () , |
||
double | atol = Eigen::NumTraits<double>::epsilon () |
||
) |
Compare sparse vectors (matrices) using both relative and absolute tolerances.
Referenced by checkGradient(), checkGradientAndThrow(), checkJacobian(), and checkJacobianAndThrow().
bool roboptim::allclose | ( | const Eigen::Ref< const Eigen::MatrixXd > & | a, |
const Eigen::Ref< const Eigen::MatrixXd > & | b, | ||
double | rtol = Eigen::NumTraits<double>::dummy_precision () , |
||
double | atol = Eigen::NumTraits<double>::epsilon () |
||
) |
Compare dense vectors (matrices) using both relative and absolute tolerances.
void roboptim::assertion_failed | ( | char const * | expr, |
char const * | function, | ||
char const * | file, | ||
long | line | ||
) |
Handler called when an insertion fails.
expr | expression used for the insertion. |
function | function where the assertion was made. |
file | file where the assertion was made. |
line | line where the assertion was made. |
References roboptim::fg::bold(), roboptim::fg::fail(), and roboptim::fg::reset().
void roboptim::assertion_failed_msg | ( | char const * | expr, |
char const * | msg, | ||
char const * | function, | ||
char const * | file, | ||
long | line | ||
) |
Handler called when an insertion fails, with an extra error message.
expr | expression used for the insertion. |
msg | |
function | function where the assertion was made. |
file | file where the assertion was made. |
line | line where the assertion was made. |
References roboptim::fg::bold(), roboptim::fg::fail(), roboptim::fg::reset(), and roboptim::fg::warn().
boost::shared_ptr< V > roboptim::castInto | ( | boost::shared_ptr< U > & | u | ) |
Cast a shared_ptr of function to a different function type.
This throws if the cast is not possible.
U | type of the origin function. |
V | new function type. |
u | input shared_ptr to a function. |
const boost::shared_ptr< V > roboptim::castInto | ( | const boost::shared_ptr< U > & | u | ) |
Cast a shared_ptr of function to a different function type.
This throws if the cast is not possible. Const version.
U | type of the origin function. |
V | new function type. |
u | input shared_ptr to a function. |
void roboptim::copySparseBlock | ( | M & | m, |
const B & | b, | ||
Function::size_type | startRow, | ||
Function::size_type | startCol, | ||
bool | compress = false |
||
) |
Copy a sparse block into a sparse matrix.
This function involves filling a vector of triplets, so this should be avoided in critical sections.
m | matrix to fill. |
b | block to copy to m. |
startRow | start row of the block in m where b will be copied. |
startCol | start col of the block in m where b will be copied. |
compress | whether to compress the sparse matrix at the end. |
References ROBOPTIM_ASSERT, and ROBOPTIM_ASSERT_MSG.
std::ostream & roboptim::decendl | ( | std::ostream & | o | ) |
Decrement the indentation, print an end of line, and set the indentation.
References decindent(), and iendl().
std::ostream & roboptim::decindent | ( | std::ostream & | o | ) |
Decrement the indentation.
References indent().
Referenced by decendl(), roboptim::detail::printConstraint< P >::operator()(), roboptim::OptimizationLogger< T >::perIterationCallbackUnsafe(), roboptim::GenericIdentityFunction< T >::print(), roboptim::Polynomial< T >::print(), roboptim::BadGradient< T >::print(), roboptim::SolverError::print(), roboptim::GenericNumericLinearFunction< T >::print(), roboptim::ScalingHelper< T >::print(), roboptim::Result::print(), roboptim::GenericConstantFunction< T >::print(), roboptim::Bind< U >::print(), roboptim::Scalar< U >::print(), roboptim::GenericNumericQuadraticFunction< T >::print(), roboptim::callback::Multiplexer< S >::print(), roboptim::CachedFunction< T >::print(), roboptim::ResultAnalyzer< T >::LICQData::print(), roboptim::FunctionPool< F, FLIST >::print(), roboptim::BadJacobian< T >::print(), roboptim::ResultAnalyzer< T >::KKTData::print(), roboptim::ResultAnalyzer< T >::NullGradientData::print(), roboptim::SolverState< P >::print(), roboptim::OptimizationLogger< T >::print(), roboptim::Solver< T >::print(), roboptim::GenericFiniteDifferenceGradient< T, FdgPolicy >::print(), and roboptim::Problem< T >::print().
const std::string roboptim::demangle | ( | const char * | name | ) |
Demangle (if available).
Referenced by roboptim::SolverFactory< S >::SolverFactory(), and typeString().
std::ostream & roboptim::iendl | ( | std::ostream & | o | ) |
Print an end of line, then set the indentation.
References indent().
Referenced by roboptim::OptimizationLogger< T >::append(), decendl(), incendl(), roboptim::detail::printConstraint< P >::operator()(), roboptim::OptimizationLogger< T >::OptimizationLogger(), roboptim::OptimizationLogger< T >::perIterationCallbackUnsafe(), roboptim::GenericIdentityFunction< T >::print(), roboptim::Polynomial< T >::print(), roboptim::BadGradient< T >::print(), roboptim::SolverError::print(), roboptim::GenericNumericLinearFunction< T >::print(), roboptim::ScalingHelper< T >::print(), roboptim::Result::print(), roboptim::GenericConstantFunction< T >::print(), roboptim::Bind< U >::print(), roboptim::Scalar< U >::print(), roboptim::GenericNumericQuadraticFunction< T >::print(), roboptim::callback::Multiplexer< S >::print(), roboptim::CachedFunction< T >::print(), roboptim::ResultAnalyzer< T >::LICQData::print(), roboptim::BadJacobian< T >::print(), roboptim::ResultAnalyzer< T >::KKTData::print(), roboptim::ResultAnalyzer< T >::NullGradientData::print(), roboptim::SolverState< P >::print(), roboptim::OptimizationLogger< T >::print(), roboptim::Solver< T >::print(), roboptim::GenericFiniteDifferenceGradient< T, FdgPolicy >::print(), roboptim::Problem< T >::print(), and roboptim::OptimizationLogger< T >::~OptimizationLogger().
std::ostream & roboptim::incendl | ( | std::ostream & | o | ) |
Increment the indentation, print an end of line, and set the indentation.
References iendl(), and incindent().
Referenced by roboptim::Problem< T >::print().
std::ostream & roboptim::incindent | ( | std::ostream & | o | ) |
Increment the indentation.
References indent().
Referenced by incendl(), roboptim::detail::printConstraint< P >::operator()(), roboptim::OptimizationLogger< T >::perIterationCallbackUnsafe(), roboptim::GenericIdentityFunction< T >::print(), roboptim::Polynomial< T >::print(), roboptim::BadGradient< T >::print(), roboptim::SolverError::print(), roboptim::GenericNumericLinearFunction< T >::print(), roboptim::ScalingHelper< T >::print(), roboptim::Result::print(), roboptim::GenericConstantFunction< T >::print(), roboptim::Bind< U >::print(), roboptim::Scalar< U >::print(), roboptim::GenericNumericQuadraticFunction< T >::print(), roboptim::callback::Multiplexer< S >::print(), roboptim::CachedFunction< T >::print(), roboptim::ResultAnalyzer< T >::LICQData::print(), roboptim::FunctionPool< F, FLIST >::print(), roboptim::BadJacobian< T >::print(), roboptim::ResultAnalyzer< T >::KKTData::print(), roboptim::ResultAnalyzer< T >::NullGradientData::print(), roboptim::SolverState< P >::print(), roboptim::OptimizationLogger< T >::print(), roboptim::Solver< T >::print(), and roboptim::GenericFiniteDifferenceGradient< T, FdgPolicy >::print().
long int & roboptim::indent | ( | std::ostream & | o | ) |
The current indentation level for o.
Referenced by decindent(), iendl(), incindent(), roboptim::GenericTwiceDifferentiableFunction< T >::print(), roboptim::GenericDifferentiableFunction< T >::print(), roboptim::GenericFunction< T >::print(), and resetindent().
|
inline |
Whether dynamic allocation is allowed.
References is_malloc_allowed_update().
Referenced by roboptim::CachedFunction< T >::cachedFunctionGradient(), roboptim::CachedFunction< T >::cachedFunctionHessian(), roboptim::CachedFunction< T >::cachedFunctionJacobian(), roboptim::finiteDifferenceGradientPolicies::Policy< T >::computeJacobian(), roboptim::finiteDifferenceGradientPolicies::FivePointsRule< T >::computeJacobian(), roboptim::GenericDifferentiableFunction< T >::gradient(), roboptim::GenericTwiceDifferentiableFunction< T >::hessian(), roboptim::CachedFunction< T >::impl_compute(), roboptim::NTimesDerivableFunction< 2 >::impl_gradient(), roboptim::NTimesDerivableFunction< 2 >::impl_hessian(), roboptim::GenericDifferentiableFunction< T >::impl_jacobian(), roboptim::GenericNumericQuadraticFunction< T >::impl_jacobian(), roboptim::GenericDifferentiableFunction< T >::jacobian(), roboptim::detail::ProductDifferentiation::jacobian(), and roboptim::GenericFunction< T >::operator()().
bool roboptim::is_malloc_allowed_update | ( | bool | update = false , |
bool | new_value = false |
||
) |
Update the static variable used for Eigen::set_is_malloc_allowed.
Referenced by is_malloc_allowed(), and set_is_malloc_allowed().
|
inline |
Apply normalize to a scalar.
Referenced by roboptim::visualization::gnuplot::detail::dense_matrix_to_gnuplot(), roboptim::visualization::matplotlib::detail::dense_matrix_to_matplotlib(), roboptim::visualization::gnuplot::plot(), roboptim::visualization::matplotlib::plot(), roboptim::visualization::gnuplot::plot_xy(), and roboptim::visualization::matplotlib::detail::sparse_matrix_to_matplotlib().
|
inline |
Apply normalize to each element of an Eigen vector.
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const SolverError & | e | ||
) |
Override operator<< to handle error display.
o | output stream used for display |
e | error to be displayed |
References roboptim::SolverError::print().
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const ScalingHelper< T > & | sh | ||
) |
Override operator<< to handle scaling helper display.
o | output stream used for display. |
sh | scaling helper to display. |
References roboptim::ScalingHelper< T >::print().
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const std::vector< T > & | vect | ||
) |
Display a vector.
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const SolverCallback< S > & | c | ||
) |
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const std::pair< T1, T2 > & | p | ||
) |
Display a pair.
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const std::map< T1, T2 > & | m | ||
) |
Display a map.
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const Eigen::MatrixBase< T > & | matrix | ||
) |
Display an Eigen object with the appropriate IOFormat.
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const Result & | r | ||
) |
Override operator<< to handle result display.
o | output stream used for display |
r | result to be displayed |
References roboptim::Result::print().
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const ParametrizedFunction< F > & | f | ||
) |
Override operator<< to handle function display.
o | output stream used for display |
f | function to be displayed |
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const GenericSolver & | gs | ||
) |
Override operator<< to handle solver display.
o | output stream used for display |
gs | solver to be displayed |
References roboptim::GenericSolver::print().
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const NoSolution & | ns | ||
) |
Override operator<< to display ``no solution'' objects.
o | output stream used for display |
ns | NoSolution object, ignored |
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const LRUCache< K, V, H > & | cache | ||
) |
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const Problem< T > & | pb | ||
) |
Override operator<< to handle problem display.
o | output stream used for display |
pb | problem to be displayed |
std::ostream & roboptim::operator<< | ( | std::ostream & | o, |
const GenericFunction< T > & | f | ||
) |
Override operator<< to handle function display.
o | output stream used for display |
f | function to be displayed |
std::ostream & roboptim::resetindent | ( | std::ostream & | o | ) |
Reset the indentation.
References indent().
|
inline |
Manage the calls to Eigen::set_is_malloc_allowed.
allow | whether to allow dynamic allocations. |
ROBOPTIM_CHECK_ALLOCATION
References is_malloc_allowed_update().
Referenced by roboptim::CachedFunction< T >::cachedFunctionGradient(), roboptim::CachedFunction< T >::cachedFunctionHessian(), roboptim::CachedFunction< T >::cachedFunctionJacobian(), roboptim::finiteDifferenceGradientPolicies::Policy< T >::computeJacobian(), roboptim::finiteDifferenceGradientPolicies::FivePointsRule< T >::computeJacobian(), roboptim::GenericDifferentiableFunction< T >::gradient(), roboptim::GenericTwiceDifferentiableFunction< T >::hessian(), roboptim::CachedFunction< T >::impl_compute(), roboptim::NTimesDerivableFunction< 2 >::impl_gradient(), roboptim::NTimesDerivableFunction< 2 >::impl_hessian(), roboptim::GenericDifferentiableFunction< T >::impl_jacobian(), roboptim::GenericNumericQuadraticFunction< T >::impl_jacobian(), roboptim::GenericDifferentiableFunction< T >::jacobian(), roboptim::detail::ProductDifferentiation::jacobian(), and roboptim::GenericFunction< T >::operator()().
GenericFunctionTraits< EigenMatrixDense >::matrix_t roboptim::sparse_to_dense | ( | GenericFunctionTraits< EigenMatrixSparse >::const_matrix_ref | m | ) |
Convert a sparse matrix into a dense matrix.
GenericFunctionTraits< EigenMatrixDense >::vector_t roboptim::sparse_to_dense | ( | GenericFunctionTraits< EigenMatrixSparse >::const_gradient_ref | v | ) |
Convert a sparse vector into a dense vector.
std::vector< std::string > roboptim::split | ( | const std::string & | s, |
char | d | ||
) |
Split a string on a given delimiter.
s | string to split. |
d | delimiter used. |
Referenced by addNonScalarConstraint(), roboptim::OptimizationLogger< T >::perIterationCallbackUnsafe(), and roboptim::SolverError::print().
GenericFunctionTraits< EigenMatrixDense >::gradient_t roboptim::toDense | ( | GenericFunctionTraits< EigenMatrixSparse >::const_gradient_ref | g | ) |
Convert an input gradient to a dense gradient (e.g.
for printing).
g | input gradient. |
Referenced by roboptim::BadGradient< T >::print(), roboptim::GenericNumericLinearFunction< T >::print(), roboptim::GenericNumericQuadraticFunction< T >::print(), roboptim::BadJacobian< T >::print(), and roboptim::ResultAnalyzer< T >::KKTData::print().
GenericFunctionTraits< EigenMatrixDense >::matrix_t roboptim::toDense | ( | GenericFunctionTraits< EigenMatrixSparse >::const_matrix_ref | m | ) |
Convert an input matrix to a dense matrix (e.g.
for printing).
m | input matrix. |
GenericFunctionTraits< EigenMatrixDense >::const_matrix_ref roboptim::toDense | ( | GenericFunctionTraits< EigenMatrixDense >::const_matrix_ref | m | ) |
Convert an input matrix to a dense matrix (e.g.
for printing).
m | input matrix. Note: since the input is a dense matrix, we just return it. |
GenericFunctionTraits<EigenMatrixDense>::const_gradient_ref roboptim::toDense | ( | GenericFunctionTraits< EigenMatrixDense >::const_gradient_ref | m | ) |
std::string roboptim::typeString | ( | ) |
Return a string describing the type of T.
References demangle().
S* roboptim::unionCast | ( | void * | ptr | ) |
void roboptim::updateSparseBlock | ( | M & | m, |
const B & | b, | ||
Function::size_type | startRow, | ||
Function::size_type | startCol | ||
) |
Update a sparse block of a sparse matrix.
This function expects the sparse matrix to have its structure set already, thus it can easily iterate over the values and copy them without any extra allocation. If that's not the case, the behavior is undefined.
m | sparse matrix to update. |
b | sparse block to copy to m. |
startRow | start row of the block in m where b will be copied. |
startCol | start col of the block in m where b will be copied. |
M | matrix type. |
B | block type. |
std::runtime_error | if the sparse pattern does not match. |
References ROBOPTIM_ASSERT, and ROBOPTIM_ASSERT_MSG.
ROBOPTIM_ALLOW_ATTRIBUTES_ON template class roboptim::GenericFunction< EigenMatrixDense > |