|
TMB Documentation
v1.9.11
|
Interoperability with other vector classes. More...
#include <TMBad.hpp>
Interoperability with other vector classes.
The TMBad interface can handle vector to vector mappings specified as functors. The evaluation operator is assumed to take std::vector as both input and output.
However, it may be that our functor is implemeted using an other vector class. In this case the StdWrap can help by automatically adding the std::vector evaluation operator. To make it work one must make sure that conversion operators exist for other, i.e. CTOR and conversion methods must be implemented for the vector class:
Then one can proceed by