All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
util.hxx File Reference
#include <stdexcept>
#include <typeinfo>
#include <roboptim/core/sys.hh>
#include <roboptim/core/debug.hh>
#include <roboptim/core/differentiable-function.hh>

Namespaces

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

Functions

template<typename T >
void roboptim::detail::jacobian_from_gradients (Function::matrix_ref jac, const std::vector< const T * > &c, Function::const_vector_ref x)
 
template<typename T >
std::ostream & roboptim::operator<< (std::ostream &, const std::vector< T > &)
 Display a vector. More...
 
template<typename T1 , typename T2 >
std::ostream & roboptim::operator<< (std::ostream &, const std::pair< T1, T2 > &)
 Display a pair. More...
 
template<typename T1 , typename T2 >
std::ostream & roboptim::operator<< (std::ostream &, const std::map< T1, T2 > &)
 Display a map. More...
 
template<typename T >
std::ostream & roboptim::operator<< (std::ostream &, const Eigen::MatrixBase< T > &)
 Display an Eigen object with the appropriate IOFormat. More...
 
template<typename T >
std::string roboptim::typeString ()
 Return a string describing the type of T. More...
 
template<typename M , typename B >
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. More...
 
template<typename M , typename B >
void roboptim::updateSparseBlock (M &m, const B &b, Function::size_type startRow, Function::size_type startCol)
 Update a sparse block of a sparse matrix. More...
 
double roboptim::normalize (double x, double eps=1e-8)
 Apply normalize to a scalar. More...
 
template<typename T >
roboptim::normalize (const T &x, double eps=1e-8)
 Apply normalize to each element of an Eigen vector. More...