Searched refs:computeobjectiveandgradient (Results 1 – 6 of 6) sorted by relevance
| /petsc/src/tao/interface/ |
| H A D | taosolver_fg.c | 143 } else if (tao->ops->computeobjectiveandgradient) { in TaoComputeGradient() 145 …PetscCallBack("Tao callback objective/gradient", (*tao->ops->computeobjectiveandgradient)(tao, X, … in TaoComputeGradient() 189 } else if (tao->ops->computeobjectiveandgradient) { in TaoComputeObjective() 193 …PetscCallBack("Tao callback objective/gradient", (*tao->ops->computeobjectiveandgradient)(tao, X, … in TaoComputeObjective() 233 if (tao->ops->computeobjectiveandgradient) { in TaoComputeObjectiveAndGradient() 238 …} else PetscCallBack("Tao callback objective/gradient", (*tao->ops->computeobjectiveandgradient)(t… in TaoComputeObjectiveAndGradient() 554 if (func) tao->ops->computeobjectiveandgradient = func; in TaoSetObjectiveAndGradient() 587 if (func) *func = tao->ops->computeobjectiveandgradient; in TaoGetObjectiveAndGradient() 668 if (tao->ops->computeobjectiveandgradient == NULL) *flg = PETSC_FALSE; in TaoIsObjectiveAndGradientDefined()
|
| /petsc/src/tao/linesearch/interface/ |
| H A D | taolinesearch.c | 189 if (ls->ops->computeobjectiveandgradient) { in TaoLineSearchSetUp() 712 ls->ops->computeobjectiveandgradient = func; in TaoLineSearchSetObjectiveAndGradientRoutine() 826 …PetscCheck(ls->ops->computeobjective || ls->ops->computeobjectiveandgradient || ls->ops->computeob… in TaoLineSearchComputeObjective() 829 else if (ls->ops->computeobjectiveandgradient) { in TaoLineSearchComputeObjective() 831 …PetscCallBack("TaoLineSearch callback objective", (*ls->ops->computeobjectiveandgradient)(ls, x, f… in TaoLineSearchComputeObjective() 874 …if (ls->ops->computeobjectiveandgradient) PetscCallBack("TaoLineSearch callback objective/gradient… in TaoLineSearchComputeObjectiveAndGradient() 921 …else PetscCallBack("TaoLineSearch callback gradient", (*ls->ops->computeobjectiveandgradient)(ls, … in TaoLineSearchComputeGradient()
|
| /petsc/include/petsc/private/ |
| H A D | taolinesearchimpl.h | 10 PetscErrorCode (*computeobjectiveandgradient)(TaoLineSearch, Vec, PetscReal *, Vec, void *); member
|
| H A D | taoimpl.h | 15 PetscErrorCode (*computeobjectiveandgradient)(Tao, Vec, PetscReal *, Vec, void *); member
|
| /petsc/src/binding/petsc4py/src/lib-petsc/ |
| H A D | custom.h | 630 *flg = (PetscBool)(tao->ops->computegradient || tao->ops->computeobjectiveandgradient); in TaoHasGradientRoutine()
|
| /petsc/src/tao/bound/impls/bnk/ |
| H A D | bnk.c | 1022 …PetscCall(TaoSetObjectiveAndGradient(bnk->bncg, NULL, tao->ops->computeobjectiveandgradient, tao->… in TaoSetUp_BNK()
|