CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
|
Public Member Functions | |
template<class Base , class VectorSize > | |
void | prepare (const ADFun< Base > &fun, const VectorSize &row, const VectorSize &col) |
void | clear () |
inform CppAD that this information needs to be recomputed | |
Public Attributes | |
std::vector< size_t > | r_sort |
version of user r array sorted by row or column | |
std::vector< size_t > | c_sort |
version of user c array sorted by row or column | |
std::vector< size_t > | k_sort |
mapping from sorted array indices to user array indices | |
size_t | K |
number elements in the user sparse Hessian | |
class used by SparseForJacHessian to hold information relative to the Hessian so it does not need to be recomputed.
Definition at line 108 of file sparse_forjac_hessian.hpp.
|
inline |
Code adapted from ADFun::SparseHessian()
Definition at line 120 of file sparse_forjac_hessian.hpp.