Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ kinsol_jacobian()

template<typename F1 , typename... Args>
static int stan::math::kinsol_system_data< F1, Args >::kinsol_jacobian ( const N_Vector  x,
const N_Vector  f_eval,
const SUNMatrix  J,
void *const  user_data,
const N_Vector  tmp1,
const N_Vector  tmp2 
)
inlinestatic

Implements the function of type CVDlsJacFn which is the user-defined callbacks for KINSOL to calculate the jacobian of the system.

The Jacobian is stored in column major format.

REMARK - tmp1 and tmp2 are pointers to memory allocated for variables of type N_Vector which can be used by KINJacFN (the function which computes the Jacobian) as temporary storage or work space. See https://computation.llnl.gov/sites/default/files/public/kin_guide-dev.pdf, page 55.

Definition at line 100 of file kinsol_data.hpp.