Lines Matching refs:Hreg
15 PetscCall(MatMult(gn->Hreg, in, gn->x_work)); in GNHessianProd()
177 PetscCall((*gn->regularizerhessian)(tao, X, gn->Hreg, gn->reg_hess_ctx)); in GNComputeHessian()
178 if (gn->mat_explicit) PetscCall(MatAXPY(gn->H, 1.0, gn->Hreg, DIFFERENT_NONZERO_PATTERN)); in GNComputeHessian()
497 PetscCall(MatDestroy(&gn->Hreg)); in TaoDestroy_BRGN()
697 … TaoBRGNSetRegularizerHessianRoutine(Tao tao, Mat Hreg, PetscErrorCode (*func)(Tao tao, Vec u, Mat… in TaoBRGNSetRegularizerHessianRoutine() argument
701 …Routine_C", (Tao, Mat, PetscErrorCode (*)(Tao, Vec, Mat, void *), void *), (tao, Hreg, func, ctx)); in TaoBRGNSetRegularizerHessianRoutine()
705 …RGNSetRegularizerHessianRoutine_BRGN(Tao tao, Mat Hreg, PetscErrorCode (*func)(Tao tao, Vec u, Mat… in TaoBRGNSetRegularizerHessianRoutine_BRGN() argument
710 if (Hreg) { in TaoBRGNSetRegularizerHessianRoutine_BRGN()
711 PetscValidHeaderSpecific(Hreg, MAT_CLASSID, 2); in TaoBRGNSetRegularizerHessianRoutine_BRGN()
712 PetscCheckSameComm(tao, 1, Hreg, 2); in TaoBRGNSetRegularizerHessianRoutine_BRGN()
716 if (Hreg) { in TaoBRGNSetRegularizerHessianRoutine_BRGN()
717 PetscCall(PetscObjectReference((PetscObject)Hreg)); in TaoBRGNSetRegularizerHessianRoutine_BRGN()
718 PetscCall(MatDestroy(&gn->Hreg)); in TaoBRGNSetRegularizerHessianRoutine_BRGN()
719 gn->Hreg = Hreg; in TaoBRGNSetRegularizerHessianRoutine_BRGN()