CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <sparse_forjac_hessian.hpp>
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 > | user_row |
version of user row array with the extra value m at end | |
std::vector< size_t > | user_col |
version of user col array with the extra value n at end | |
std::vector< size_t > | sort_row |
indices that sort the user arrays by row with the extra value K at the end | |
std::vector< size_t > | sort_col |
indices that sort the user arrays by column with the extra value K at the end | |
size_t | K |
number elements in the user sparse Jacobian | |
class used by SparseForJacHessian to hold information relative to the Jacobian so it does not need to be recomputed.
Definition at line 28 of file sparse_forjac_hessian.hpp.
|
inline |
inform CppAD that this information needs to be recomputed
Definition at line 96 of file sparse_forjac_hessian.hpp.
Referenced by CppAD::cg::SparseForjacHessianWork::clear().
|
inline |
Code adapted from ADFun::SparseJacobianForward()
Definition at line 44 of file sparse_forjac_hessian.hpp.
size_t CppAD::cg::SparseForjacHessianWorkJac::K |
number elements in the user sparse Jacobian
Definition at line 41 of file sparse_forjac_hessian.hpp.
Referenced by prepare().
std::vector<size_t> CppAD::cg::SparseForjacHessianWorkJac::sort_col |
indices that sort the user arrays by column with the extra value K at the end
Definition at line 39 of file sparse_forjac_hessian.hpp.
std::vector<size_t> CppAD::cg::SparseForjacHessianWorkJac::sort_row |
indices that sort the user arrays by row with the extra value K at the end
Definition at line 36 of file sparse_forjac_hessian.hpp.
Referenced by clear().
std::vector<size_t> CppAD::cg::SparseForjacHessianWorkJac::user_col |
version of user col array with the extra value n at end
Definition at line 33 of file sparse_forjac_hessian.hpp.
std::vector<size_t> CppAD::cg::SparseForjacHessianWorkJac::user_row |
version of user row array with the extra value m at end
Definition at line 31 of file sparse_forjac_hessian.hpp.