Lines Matching refs:dgtest
38 PetscReal dgx, dgy, dg, dg2, fx, fy, stx, sty, dgtest;
95 dgtest = ls->ftol * dginit;
178 ftest1 = finit + ls->step * dgtest;
179 if (ls->bounded) ftest2 = finit + ls->step * dgtest * ls->ftol;
201 if (ls->step == ls->stepmax && *f <= ftest1 && dg <= dgtest) {
206 if (ls->step == ls->stepmin && *f >= ftest1 && dg >= dgtest) {
228 fm = *f - ls->step * dgtest; /* Define modified function */
229 fxm = fx - stx * dgtest; /* and derivatives */
230 fym = fy - sty * dgtest;
231 dgm = dg - dgtest;
232 dgxm = dgx - dgtest;
233 dgym = dgy - dgtest;
239 fx = fxm + stx * dgtest; /* Reset the function and */
240 fy = fym + sty * dgtest; /* gradient values */
241 dgx = dgxm + dgtest;
242 dgy = dgym + dgtest;