CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
CppAD::cg::SparseForjacHessianWorkJac Class Reference

#include <sparse_forjac_hessian.hpp>

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

◆ clear()

void CppAD::cg::SparseForjacHessianWorkJac::clear ( )
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().

◆ 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.

Member Data Documentation

◆ K

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().

◆ sort_col

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.

Referenced by clear(), and prepare().

◆ sort_row

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().

◆ user_col

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.

Referenced by clear(), and prepare().

◆ user_row

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.

Referenced by clear(), and prepare().


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