CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
CppAD::cg::SparseForjacHessianWorkJac Class Reference
Collaboration diagram for CppAD::cg::SparseForjacHessianWorkJac:
Collaboration graph

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
 

Detailed Description

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.

Member Function Documentation

◆ prepare()

template<class Base , class VectorSize >
void CppAD::cg::SparseForjacHessianWorkJac::prepare ( const ADFun< Base > &  fun,
const VectorSize &  row,
const VectorSize &  col 
)
inline

Code adapted from ADFun::SparseJacobianForward()

Definition at line 44 of file sparse_forjac_hessian.hpp.


The documentation for this class was generated from the following file: