Searched refs:workN2 (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/tao/constrained/tutorials/ |
| H A D | tomographyADMM.c | 21 …Vec c, xlb, xub, x, b, workM, workN, workN2, workN3, xGT; /* observation b, ground truth xGT… member 78 PetscCall(MatMultTranspose(user->A, user->b, user->workN2)); in MisfitObjectiveAndGradient() 79 PetscCall(VecWAXPY(g, -1., user->workN2, user->workN)); in MisfitObjectiveAndGradient() 94 PetscCall(VecCopy(X, user->workN2)); in RegularizerObjectiveAndGradient1() 95 PetscCall(VecPow(user->workN2, 2.)); in RegularizerObjectiveAndGradient1() 96 PetscCall(VecShift(user->workN2, user->eps * user->eps)); in RegularizerObjectiveAndGradient1() 97 PetscCall(VecSqrtAbs(user->workN2)); in RegularizerObjectiveAndGradient1() 98 PetscCall(VecCopy(user->workN2, user->workN3)); in RegularizerObjectiveAndGradient1() 99 PetscCall(VecShift(user->workN2, -user->eps)); in RegularizerObjectiveAndGradient1() 100 PetscCall(VecSum(user->workN2, f_reg)); in RegularizerObjectiveAndGradient1() [all …]
|