CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
addr_t CppAD::local::recorder< Base >::PutPar ( const Base &  par)
inline

Find or add a parameter to the current vector of parameters.

Parameters
paris the parameter to be found or placed in the vector of parameters.
Returns
is the index in the parameter vector corresponding to this parameter value. This value is not necessarily placed at the end of the vector (because values that are identically equal may be reused).

Definition at line 314 of file recorder.hpp.

Referenced by CppAD::local::optimize::optimize_run(), CppAD::local::optimize::record_csum(), CppAD::local::optimize::record_pv(), and CppAD::local::optimize::record_vp().