Lines Matching refs:gdx
560 PetscReal gdx, e_min; in TaoBNKSafeguardStep() local
566 PetscCall(VecDot(tao->stepdirection, tao->gradient, &gdx)); in TaoBNKSafeguardStep()
567 if ((gdx >= 0.0) || PetscIsInfOrNanReal(gdx)) { in TaoBNKSafeguardStep()
597 PetscCall(VecDot(tao->gradient, tao->stepdirection, &gdx)); in TaoBNKSafeguardStep()
598 if ((gdx <= 0.0) || PetscIsInfOrNanReal(gdx)) { in TaoBNKSafeguardStep()
660 PetscCall(VecDot(tao->stepdirection, tao->gradient, &gdx)); in TaoBNKSafeguardStep()
661 if (gdx >= 0 || PetscIsInfOrNanReal(gdx)) { in TaoBNKSafeguardStep()
694 PetscReal e_min, gdx; in TaoBNKPerformLineSearch() local
737 PetscCall(VecDot(tao->gradient, tao->stepdirection, &gdx)); in TaoBNKPerformLineSearch()
738 if ((gdx <= 0.0) || PetscIsInfOrNanReal(gdx)) { in TaoBNKPerformLineSearch()
797 PetscReal gdx, tau_1, tau_2, tau_min, tau_max; in TaoBNKUpdateTrustRadius() local
898 PetscCall(VecDot(tao->gradient, tao->stepdirection, &gdx)); in TaoBNKUpdateTrustRadius()
899 tau_1 = bnk->theta * gdx / (bnk->theta * gdx - (1.0 - bnk->theta) * prered + actred); in TaoBNKUpdateTrustRadius()
900 tau_2 = bnk->theta * gdx / (bnk->theta * gdx + (1.0 + bnk->theta) * prered - actred); in TaoBNKUpdateTrustRadius()