Searched refs:cg_type (Results 1 – 6 of 6) sorted by relevance
| /petsc/src/tao/unconstrained/impls/cg/ |
| H A D | taocg.c | 154 switch (cgP->cg_type) { in TaoSolve_CG() 230 …-tao_cg_type", "cg formula", "", CG_Table, CG_Types, CG_Table[cgP->cg_type], &cgP->cg_type, NULL)); in TaoSetFromOptions_CG() 246 PetscCall(PetscViewerASCIIPrintf(viewer, "CG Type: %s\n", CG_Table[cgP->cg_type])); in TaoView_CG() 306 cgP->cg_type = CG_PolakRibierePlus; in TaoCreate_CG()
|
| H A D | taocg.h | 27 PetscInt cg_type; /* Formula to use */ member
|
| /petsc/src/tao/bound/impls/bncg/ |
| H A D | bncg.c | 183 …ate formula", "TaoBNCGTypes", TaoBNCGTypes, (PetscEnum)cg->cg_type, (PetscEnum *)&cg->cg_type, NUL… in TaoSetFromOptions_BNCG() 184 …if (cg->cg_type != TAO_BNCG_SSML_BFGS) cg->alpha = -1.0; /* Setting defaults for non-BFGS methods.… in TaoSetFromOptions_BNCG() 185 if (TAO_BNCG_GD == cg->cg_type) { in TaoSetFromOptions_BNCG() 186 cg->cg_type = TAO_BNCG_PCGD; in TaoSetFromOptions_BNCG() 212 …if (cg->alpha == -1.0 && cg->cg_type == TAO_BNCG_KD && !cg->diag_scaling) { /* Some more default o… in TaoSetFromOptions_BNCG() 238 PetscCall(PetscViewerASCIIPrintf(viewer, "CG Type: %s\n", TaoBNCGTypes[cg->cg_type])); in TaoView_BNCG() 388 cg->cg_type = TAO_BNCG_SSML_BFGS; in TaoCreate_BNCG() 498 switch (cg->cg_type) { in TaoBNCGStepDirectionUpdate() 898 if (cg->cg_type == TAO_BNCG_GD) { in TaoBNCGConductIteration() 912 if (cg->cg_type != TAO_BNCG_PCGD && cg->diag_scaling) { in TaoBNCGConductIteration() [all …]
|
| H A D | bncg.h | 33 TaoBNCGType cg_type; /* Formula to use */ member
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | TAO.pyx | 1556 def setBNCGType(self, cg_type: BNCGType) -> None: 1566 cdef PetscTAOBNCGType ctype = cg_type 1579 cdef PetscTAOBNCGType cg_type = TAO_BNCG_SSML_BFGS 1580 CHKERR(TaoBNCGGetType(self.tao, &cg_type)) 1581 return cg_type
|
| /petsc/doc/manual/ |
| H A D | tao.md | 3253 cg->cg_type = CG_PolakRibierePlus;
|