#include "petscsnes.h" PetscErrorCode SNESDefaultMatrixFreeSetParameters2(Mat mat,PetscReal error,PetscReal umin,PetscReal h)
J(u)*a = [J(u+h*a) - J(u)]/h where
either the user sets h directly here, or this parameter is computed via Many br
h = error_rel*u'a/||a||^2 if |u'a| > umin*||a||_{1}
= error_rel*umin*sign(u'a)*||a||_{1}/||a||^2 else
mat | - the matrix Many br | |
error_rel | - relative error (should be set to the square root of Many brthe relative error in the function evaluations) Many br | |
umin | - minimum allowable u-value Many br | |
h | - differencing parameter Many br |
Many br
Level:advanced
Location:src/snes/interface/noise/snesmfj2.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages