Template Function GridKit::Testing::residualDifference

Function Documentation

template<typename ScalarT, typename IdxT>
std::vector<ScalarT> GridKit::Testing::residualDifference(Model::Evaluator<ScalarT, IdxT> &model, IdxT j, ScalarT alpha)

Central difference of the residual along y_j, with y’_j moving alpha times as fast, or none if an evaluation fails.