All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
util.cc File Reference
#include "debug.hh"
#include <boost/version.hpp>
#include <cstring>
#include <algorithm>
#include <sstream>
#include "roboptim/core/util.hh"

Namespaces

namespace  roboptim
 defined(EIGEN_RUNTIME_NO_MALLOC) && !defined(ROBOPTIM_DO_NOT_CHECK_ALLOCATION)
 
namespace  roboptim::detail
 

Functions

ROBOPTIM_CORE_DLLAPI void roboptim::detail::vector_to_array (Function::value_type *dst, Function::const_vector_ref src)
 ROBOPTIM_HAS_FENV_H. More...
 
ROBOPTIM_CORE_DLLAPI void roboptim::detail::array_to_vector (Function::vector_ref dst, const Function::value_type *src)
 
ROBOPTIM_CORE_DLLAPI const
std::string 
roboptim::demangle (const char *name)
 Demangle (if available). More...
 
ROBOPTIM_CORE_DLLAPI
GenericFunctionTraits
< EigenMatrixDense >::matrix_t 
roboptim::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 
roboptim::sparse_to_dense (GenericFunctionTraits< EigenMatrixSparse >::const_gradient_ref v)
 Convert a sparse vector into a dense vector. More...
 
ROBOPTIM_CORE_DLLAPI 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. More...
 
ROBOPTIM_CORE_DLLAPI 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. More...
 
GenericFunctionTraits
< EigenMatrixDense >
::const_gradient_ref 
roboptim::toDense (GenericFunctionTraits< EigenMatrixDense >::const_gradient_ref m)
 
ROBOPTIM_CORE_DLLAPI
GenericFunctionTraits
< EigenMatrixDense >
::gradient_t 
roboptim::toDense (GenericFunctionTraits< EigenMatrixSparse >::const_gradient_ref g)
 Convert an input gradient to a dense gradient (e.g. More...
 
ROBOPTIM_CORE_DLLAPI
GenericFunctionTraits
< EigenMatrixDense >
::const_matrix_ref 
roboptim::toDense (GenericFunctionTraits< EigenMatrixDense >::const_matrix_ref m)
 Convert an input matrix to a dense matrix (e.g. More...
 
ROBOPTIM_CORE_DLLAPI
GenericFunctionTraits
< EigenMatrixDense >::matrix_t 
roboptim::toDense (GenericFunctionTraits< EigenMatrixSparse >::const_matrix_ref m)
 Convert an input matrix to a dense matrix (e.g. More...
 
ROBOPTIM_CORE_DLLAPI
std::vector< std::string > 
roboptim::split (const std::string &s, char d)
 Split a string on a given delimiter. More...