Lines Matching refs:Work
13 PetscCall(VecDestroy(&tron->Work)); in TaoDestroy_TRON()
62 PetscCall(VecDuplicate(tao->solution, &tron->Work)); in TaoSetup_TRON()
178 PetscCall(MatMult(tao->hessian, tao->stepdirection, tron->Work)); in TaoSolve_TRON()
179 PetscCall(VecAYPX(tron->Work, 0.5, tao->gradient)); in TaoSolve_TRON()
180 PetscCall(VecDot(tao->stepdirection, tron->Work, &prered)); in TaoSolve_TRON()
279 …PetscCheck(tron->Work && tao->gradient, PETSC_COMM_SELF, PETSC_ERR_ORDER, "Dual variables don't ex… in TaoComputeDual_TRON()
281 PetscCall(VecBoundGradientProjection(tao->gradient, tao->solution, tao->XL, tao->XU, tron->Work)); in TaoComputeDual_TRON()
282 PetscCall(VecCopy(tron->Work, DXL)); in TaoComputeDual_TRON()
288 PetscCall(VecAXPY(DXU, -1.0, tron->Work)); in TaoComputeDual_TRON()
289 PetscCall(VecSet(tron->Work, 0.0)); in TaoComputeDual_TRON()
290 PetscCall(VecPointwiseMin(DXU, tron->Work, DXU)); in TaoComputeDual_TRON()
348 tron->Work = NULL; in TaoCreate_TRON()