Lines Matching refs:_ctx

176 static PetscErrorCode ObjectiveMisfit(Tao tao, Vec x, PetscReal *J, void *_ctx)  in ObjectiveMisfit()  argument
178 UserCtx ctx = (UserCtx)_ctx; in ObjectiveMisfit()
191 static PetscErrorCode GradientMisfit(Tao tao, Vec x, Vec V, void *_ctx) in GradientMisfit() argument
193 UserCtx ctx = (UserCtx)_ctx; in GradientMisfit()
207 static PetscErrorCode HessianMisfit(Tao tao, Vec x, Mat H, Mat Hpre, void *_ctx) in HessianMisfit() argument
209 UserCtx ctx = (UserCtx)_ctx; in HessianMisfit()
219 static PetscErrorCode ObjectiveMisfitADMM(Tao tao, Vec x, PetscReal *J, void *_ctx) in ObjectiveMisfitADMM() argument
221 UserCtx ctx = (UserCtx)_ctx; in ObjectiveMisfitADMM()
231 PetscCall(ObjectiveMisfit(tao, x, &misfit, _ctx)); in ObjectiveMisfitADMM()
243 static PetscErrorCode GradientMisfitADMM(Tao tao, Vec x, Vec V, void *_ctx) in GradientMisfitADMM() argument
245 UserCtx ctx = (UserCtx)_ctx; in GradientMisfitADMM()
254 PetscCall(GradientMisfit(tao, x, V, _ctx)); in GradientMisfitADMM()
264 static PetscErrorCode HessianMisfitADMM(Tao tao, Vec x, Mat H, Mat Hpre, void *_ctx) in HessianMisfitADMM() argument
266 UserCtx ctx = (UserCtx)_ctx; in HessianMisfitADMM()
276 static PetscErrorCode ObjectiveRegularization(Tao tao, Vec x, PetscReal *J, void *_ctx) in ObjectiveRegularization() argument
278 UserCtx ctx = (UserCtx)_ctx; in ObjectiveRegularization()
292 static PetscErrorCode GradientRegularization(Tao tao, Vec x, Vec V, void *_ctx) in GradientRegularization() argument
294 UserCtx ctx = (UserCtx)_ctx; in GradientRegularization()
311 static PetscErrorCode HessianRegularization(Tao tao, Vec x, Mat H, Mat Hpre, void *_ctx) in HessianRegularization() argument
313 UserCtx ctx = (UserCtx)_ctx; in HessianRegularization()
363 static PetscErrorCode ObjectiveRegularizationADMM(Tao tao, Vec z, PetscReal *J, void *_ctx) in ObjectiveRegularizationADMM() argument
365 UserCtx ctx = (UserCtx)_ctx; in ObjectiveRegularizationADMM()
374 PetscCall(ObjectiveRegularization(tao, z, &reg, _ctx)); in ObjectiveRegularizationADMM()
387 static PetscErrorCode GradientRegularizationADMM(Tao tao, Vec z, Vec V, void *_ctx) in GradientRegularizationADMM() argument
389 UserCtx ctx = (UserCtx)_ctx; in GradientRegularizationADMM()
398 PetscCall(GradientRegularization(tao, z, V, _ctx)); in GradientRegularizationADMM()
408 static PetscErrorCode HessianRegularizationADMM(Tao tao, Vec x, Mat H, Mat Hpre, void *_ctx) in HessianRegularizationADMM() argument
410 UserCtx ctx = (UserCtx)_ctx; in HessianRegularizationADMM()