Lines Matching refs:fy
10 static PetscErrorCode Tao_mcstep(TaoLineSearch ls, PetscReal *stx, PetscReal *fx, PetscReal *dx, PetscReal *sty, PetscReal *fy, PetscReal *dy, PetscReal *stp, PetscReal *fp, PetscReal *dp);
29 PetscCall(PetscViewerASCIIPrintf(ls->viewer, "sty: %g, fy: %g, dgy: %g\n", (double)mt->sty, (double)mt->fy, (double)mt->dgy));
38 PetscReal dgx, dgy, dg, dg2, fx, fy, stx, sty, dgtest;
101 sty, fy, dgy - the step, function, and derivative at the other endpoint
109 fy = finit;
164 mt->fy = fy;
230 fym = fy - sty * dgtest;
240 fy = fym + sty * dgtest; /* gradient values */
245 PetscCall(Tao_mcstep(ls, &stx, &fx, &dgx, &sty, &fy, &dgy, &ls->step, f, &dg));
320 subroutine mcstep(stx,fx,dx,sty,fy,dy,stp,fp,dp,bracket,
331 sty, fy, and dy are variables which specify the step,
363 static PetscErrorCode Tao_mcstep(TaoLineSearch ls, PetscReal *stx, PetscReal *fx, PetscReal *dx, PetscReal *sty, PetscReal *fy, PetscReal *dy, PetscReal *stp, PetscReal *fp, PetscReal *dp)
468 theta = 3 * (*fp - *fy) / (*sty - *stp) + *dy + *dp;
490 *fy = *fp;
495 *fy = *fx;