Lines Matching refs:temp

223   Vec       z, u, temp;  in ObjectiveMisfitADMM()  local
229 temp = ctx->workRight[10]; in ObjectiveMisfitADMM()
232 PetscCall(VecCopy(x, temp)); in ObjectiveMisfitADMM()
234 PetscCall(VecAXPBYPCZ(temp, -1., 1., 1., z, u)); in ObjectiveMisfitADMM()
236 PetscCall(VecDot(temp, temp, &workNorm)); in ObjectiveMisfitADMM()
247 Vec z, u, temp; in GradientMisfitADMM() local
253 temp = ctx->workRight[10]; in GradientMisfitADMM()
255 PetscCall(VecCopy(x, temp)); in GradientMisfitADMM()
257 PetscCall(VecAXPBYPCZ(temp, -1., 1., 1., z, u)); in GradientMisfitADMM()
259 PetscCall(VecAXPY(V, mu, temp)); in GradientMisfitADMM()
367 Vec x, u, temp; in ObjectiveRegularizationADMM() local
373 temp = ctx->workRight[10]; in ObjectiveRegularizationADMM()
375 PetscCall(VecCopy(z, temp)); in ObjectiveRegularizationADMM()
377 PetscCall(VecAXPBYPCZ(temp, 1., 1., -1., x, u)); in ObjectiveRegularizationADMM()
379 PetscCall(VecDot(temp, temp, &workNorm)); in ObjectiveRegularizationADMM()
391 Vec x, u, temp; in GradientRegularizationADMM() local
397 temp = ctx->workRight[10]; in GradientRegularizationADMM()
399 PetscCall(VecCopy(z, temp)); in GradientRegularizationADMM()
401 PetscCall(VecAXPBYPCZ(temp, 1., 1., -1., x, u)); in GradientRegularizationADMM()
402 PetscCall(VecAXPY(V, -mu, temp)); in GradientRegularizationADMM()
476 Vec xk, z, u, diff, zold, zdiff, temp; in TaoSolveADMM() local
486 temp = ctx->workRight[11]; in TaoSolveADMM()
514 PetscCall(VecWAXPY(temp, 1., xk, u)); in TaoSolveADMM()
515 PetscCall(TaoSoftThreshold(temp, -ctx->alpha / mu, ctx->alpha / mu, z)); in TaoSolveADMM()
547 PetscReal h, J, temp; in TaylorTest() local
583 temp = PetscLogReal(Js[j] / Js[j - 1]) / PetscLogReal(hs[j] / hs[j - 1]); in TaylorTest()
584 …PetscCall(PetscPrintf(comm, "Convergence rate step %" PetscInt_FMT ": %g\n", j - 1, (double)temp)); in TaylorTest()
585 minrate = PetscMin(minrate, temp); in TaylorTest()