Template Function GridKit::Testing::jacobianMatchesResidual

Function Documentation

template<typename ScalarT, typename IdxT>
bool GridKit::Testing::jacobianMatchesResidual(Model::Evaluator<ScalarT, IdxT> &model, ScalarT t, ScalarT alpha, ScalarT tol)

The CSR Jacobian of model at time t and its current values is dF/dy + alpha dF/dy’, and stores every nonzero difference.