Searched refs:computegradient (Results 1 – 8 of 8) sorted by relevance
| /petsc/src/tao/interface/ |
| H A D | taosolver_fg.c | 138 if (tao->ops->computegradient) { in TaoComputeGradient() 140 … PetscCallBack("Tao callback gradient", (*tao->ops->computegradient)(tao, X, G, tao->user_gradP)); in TaoComputeGradient() 235 if (tao->ops->computegradient == TaoDefaultComputeGradient) { in TaoComputeObjectiveAndGradient() 241 } else if (tao->ops->computeobjective && tao->ops->computegradient) { in TaoComputeObjectiveAndGradient() 247 … PetscCallBack("Tao callback gradient", (*tao->ops->computegradient)(tao, X, G, tao->user_gradP)); in TaoComputeObjectiveAndGradient() 478 if (func) tao->ops->computegradient = func; in TaoSetGradient() 511 if (func) *func = tao->ops->computegradient; in TaoGetGradient() 641 if (tao->ops->computegradient == NULL) *flg = PETSC_FALSE; in TaoIsGradientDefined()
|
| /petsc/include/petsc/private/ |
| H A D | taolinesearchimpl.h | 9 PetscErrorCode (*computegradient)(TaoLineSearch, Vec, Vec, void *); member
|
| H A D | petscfvimpl.h | 67 PetscErrorCode (*computegradient)(PetscFV, PetscInt, const PetscScalar[], PetscScalar[]); member
|
| H A D | taoimpl.h | 16 PetscErrorCode (*computegradient)(Tao, Vec, Vec, void *); member
|
| /petsc/src/tao/linesearch/interface/ |
| H A D | taolinesearch.c | 184 if (ls->ops->computegradient) { in TaoLineSearchSetUp() 672 ls->ops->computegradient = func; in TaoLineSearchSetGradientRoutine() 877 …PetscCallBack("TaoLineSearch callback gradient", (*ls->ops->computegradient)(ls, x, g, ls->userctx… in TaoLineSearchComputeObjectiveAndGradient() 920 …if (ls->ops->computegradient) PetscCallBack("TaoLineSearch callback gradient", (*ls->ops->computeg… in TaoLineSearchComputeGradient()
|
| /petsc/src/dm/dt/fv/interface/ |
| H A D | fv.c | 1704 PetscTryTypeMethod(fvm, computegradient, numFaces, dx, grad); in PetscFVComputeGradient() 1940 fvm->ops->computegradient = PetscFVComputeGradient_Upwind; in PetscFVInitialize_Upwind() 2242 fvm->ops->computegradient = PetscFVComputeGradient_LeastSquares; in PetscFVInitialize_LeastSquares()
|
| /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 | 1021 PetscCall(TaoSetGradient(bnk->bncg, NULL, tao->ops->computegradient, tao->user_gradP)); in TaoSetUp_BNK()
|