Home
last modified time | relevance | path

Searched refs:nupdates (Results 1 – 5 of 5) sorted by relevance

/petsc/src/tao/bound/impls/bqnls/
H A Dbqnls.c26 PetscInt nupdates; in TaoBQNLSComputeStep() local
33 PetscCall(MatLMVMGetUpdateCount(bqnk->B, &nupdates)); in TaoBQNLSComputeStep()
34 if (nupdates == 0) *step_type = BNK_SCALED_GRADIENT; in TaoBQNLSComputeStep()
/petsc/src/tao/unconstrained/impls/lmvm/
H A Dlmvm.c12 PetscInt stepType = LMVM_STEP_GRAD, nupdates; in TaoSolve_LMVM() local
52 PetscCall(MatLMVMGetUpdateCount(lmP->M, &nupdates)); in TaoSolve_LMVM()
53 if (nupdates > 0) stepType = LMVM_STEP_BFGS; in TaoSolve_LMVM()
/petsc/src/ksp/ksp/utils/lmvm/
H A Dlmvmimpl.c84 lmvm->nupdates = 0; in MatReset_LMVM()
146 lmvm->nupdates++; in MatUpdateKernel_LMVM()
256 mctx->nupdates = bctx->nupdates; in MatCopy_LMVM()
326 PetscCall(PetscViewerASCIIPrintf(pv, "Number of updates: %" PetscInt_FMT "\n", lmvm->nupdates)); in MatView_LMVM()
H A Dlmvm.h86 PetscInt m, k, nupdates, nrejects, nresets; member
H A Dlmvmutils.c900 PetscErrorCode MatLMVMGetUpdateCount(Mat B, PetscInt *nupdates) in MatLMVMGetUpdateCount() argument
910 *nupdates = lmvm->nupdates; in MatLMVMGetUpdateCount()