Lines Matching refs:stepdirection

97   PetscCall(VecSet(tao->stepdirection, 0.0));  in TaoBNKInitialize()
240 PetscCall(VecCopy(tao->solution, tao->stepdirection)); in TaoBNKInitialize()
241 PetscCall(VecAXPY(tao->stepdirection, -1.0, bnk->Xold)); in TaoBNKInitialize()
411 PetscCall(VecSet(tao->stepdirection, 0.0)); in TaoBNKComputeStep()
412 PetscCall(TaoBNKBoundStep(tao, bnk->as_type, tao->stepdirection)); in TaoBNKComputeStep()
429 PetscCall(VecSet(tao->stepdirection, 0.0)); in TaoBNKComputeStep()
439 PetscCall(VecGetSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKComputeStep()
442 bnk->X_inactive = tao->stepdirection; in TaoBNKComputeStep()
484 PetscCall(VecRestoreSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKComputeStep()
487 PetscCall(VecScale(tao->stepdirection, -1.0)); in TaoBNKComputeStep()
488 PetscCall(TaoBNKBoundStep(tao, bnk->as_type, tao->stepdirection)); in TaoBNKComputeStep()
530 PetscCall(VecGetSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKRecomputePred()
534 bnk->X_inactive = tao->stepdirection; in TaoBNKRecomputePred()
544 PetscCall(VecRestoreSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKRecomputePred()
566 PetscCall(VecDot(tao->stepdirection, tao->gradient, &gdx)); in TaoBNKSafeguardStep()
588 PetscCall(VecCopy(tao->gradient, tao->stepdirection)); in TaoBNKSafeguardStep()
592 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKSafeguardStep()
597 PetscCall(VecDot(tao->gradient, tao->stepdirection, &gdx)); in TaoBNKSafeguardStep()
607 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKSafeguardStep()
621 PetscCall(VecScale(tao->stepdirection, -1.0)); in TaoBNKSafeguardStep()
622 PetscCall(TaoBNKBoundStep(tao, bnk->as_type, tao->stepdirection)); in TaoBNKSafeguardStep()
660 PetscCall(VecDot(tao->stepdirection, tao->gradient, &gdx)); in TaoBNKSafeguardStep()
666 PetscCall(MatSolve(bnk->M, tao->gradient, tao->stepdirection)); in TaoBNKSafeguardStep()
667 PetscCall(VecScale(tao->stepdirection, -1.0)); in TaoBNKSafeguardStep()
668 PetscCall(TaoBNKBoundStep(tao, bnk->as_type, tao->stepdirection)); in TaoBNKSafeguardStep()
699 …->linesearch, tao->solution, &bnk->f, bnk->unprojected_gradient, tao->stepdirection, steplen, &ls_… in TaoBNKPerformLineSearch()
730 PetscCall(VecCopy(bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
734 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
737 PetscCall(VecDot(tao->gradient, tao->stepdirection, &gdx)); in TaoBNKPerformLineSearch()
744 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
766 PetscCall(MatSolve(bnk->M, bnk->unprojected_gradient, tao->stepdirection)); in TaoBNKPerformLineSearch()
773 PetscCall(VecScale(tao->stepdirection, -1.0)); in TaoBNKPerformLineSearch()
774 PetscCall(TaoBNKBoundStep(tao, bnk->as_type, tao->stepdirection)); in TaoBNKPerformLineSearch()
777 …->linesearch, tao->solution, &bnk->f, bnk->unprojected_gradient, tao->stepdirection, steplen, &ls_… in TaoBNKPerformLineSearch()
898 PetscCall(VecDot(tao->gradient, tao->stepdirection, &gdx)); in TaoBNKUpdateTrustRadius()
986 if (!tao->stepdirection) PetscCall(VecDuplicate(tao->solution, &tao->stepdirection)); in TaoSetUp_BNK()
1011 PetscCall(PetscObjectReference((PetscObject)tao->stepdirection)); in TaoSetUp_BNK()
1012 PetscCall(VecDestroy(&bnk->bncg->stepdirection)); in TaoSetUp_BNK()
1013 bnk->bncg->stepdirection = tao->stepdirection; in TaoSetUp_BNK()