Function lupnt::JacobianParallel¶
Defined in File math_utils.cc
Function Documentation¶
-
VecX lupnt::JacobianParallel(const std::function<VecX(const VecX&)> &func, const VecX &x0, MatXd &J)¶
Compute
func(x0)together with its JacobianJ = d(func)/d(x0), evaluating each column ofJin parallel via finite differences/autodiff (jacobian/wrt/atfrom autodiff).Called by
Integrator::Propagate/PropagateEx(theMatXd* J/state-transition- matrix overloads) to compute the sensitivity of a propagated state with respect to its initial condition, by treating the whole propagation asfunc.- Parameters:
func – Function whose Jacobian is to be evaluated
x0 – Point at which to evaluate
funcand its Jacobian [size n]J – Output Jacobian matrix, resized to
m x nwherem = func(x0).size()
- Returns:
func(x0)[size m]