All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::detail::BlockProvider Struct Reference

Gives access to a std::vector of std::pair<size_t, size_t> representing blocks of input Those blocks are needed even if the function is not differentiable, making it easier for us to define it in a exterior class to then use it transparently. More...

#include <roboptim/core/detail/structured-input.hh>

Inheritance diagram for roboptim::detail::BlockProvider:
roboptim::detail::StructuredInputJacobianInternal< FuncType, MatType > roboptim::detail::StructuredInputJacobianInternal< FuncType, roboptim::EigenMatrixDense > roboptim::detail::StructuredInputJacobianInternal< FuncType, roboptim::EigenMatrixSparse >

Public Attributes

std::vector< std::pair< size_t,
size_t > > 
blocks
 stores the blocks defined by the function as a pair of integers. More...
 

Detailed Description

Gives access to a std::vector of std::pair<size_t, size_t> representing blocks of input Those blocks are needed even if the function is not differentiable, making it easier for us to define it in a exterior class to then use it transparently.

Member Data Documentation

std::vector<std::pair<size_t, size_t> > roboptim::detail::BlockProvider::blocks

stores the blocks defined by the function as a pair of integers.

The first element is the first index of the block, the second element repersetn the total size of the block.

Referenced by roboptim::detail::StructuredInput< FuncType >::addBlock(), roboptim::detail::StructuredInput< FuncType >::getInputBlock(), and roboptim::detail::StructuredInput< FuncType >::getNumBlocks().