Lines Matching defs:Jpre
281 - Jpre - matrix used to compute the preconditioner, often the same as `J`
295 PetscErrorCode TaoComputeJacobian(Tao tao, Vec X, Mat J, Mat Jpre)
303 PetscCall(PetscLogEventBegin(TAO_JacobianEval, tao, X, J, Jpre));
304 PetscCallBack("Tao callback Jacobian", (*tao->ops->computejacobian)(tao, X, J, Jpre, tao->user_jacP));
305 PetscCall(PetscLogEventEnd(TAO_JacobianEval, tao, X, J, Jpre));
322 - Jpre - matrix used to compute the preconditioner, often the same as `J`
336 PetscErrorCode TaoComputeResidualJacobian(Tao tao, Vec X, Mat J, Mat Jpre)
344 PetscCall(PetscLogEventBegin(TAO_JacobianEval, tao, X, J, Jpre));
345 PetscCallBack("Tao callback least-squares residual Jacobian", (*tao->ops->computeresidualjacobian)(tao, X, J, Jpre, tao->user_lsjacP));
346 PetscCall(PetscLogEventEnd(TAO_JacobianEval, tao, X, J, Jpre));
363 . Jpre - matrix used to construct the preconditioner, often the same as `J`
374 PetscErrorCode TaoComputeJacobianState(Tao tao, Vec X, Mat J, Mat Jpre, Mat Jinv)
382 PetscCall(PetscLogEventBegin(TAO_JacobianEval, tao, X, J, Jpre));
383 PetscCallBack("Tao callback Jacobian(state)", (*tao->ops->computejacobianstate)(tao, X, J, Jpre, Jinv, tao->user_jac_stateP));
384 PetscCall(PetscLogEventEnd(TAO_JacobianEval, tao, X, J, Jpre));
433 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`
442 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
449 PetscErrorCode TaoSetJacobianRoutine(Tao tao, Mat J, Mat Jpre, PetscErrorCode (*func)(Tao tao, Vec x, Mat J, Mat Jpre, PetscCtx ctx), PetscCtx ctx)
457 if (Jpre) {
458 PetscValidHeaderSpecific(Jpre, MAT_CLASSID, 3);
459 PetscCheckSameComm(tao, 1, Jpre, 3);
468 if (Jpre) {
469 PetscCall(PetscObjectReference((PetscObject)Jpre));
471 tao->jacobian_pre = Jpre;
485 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`
494 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
501 PetscErrorCode TaoSetJacobianResidualRoutine(Tao tao, Mat J, Mat Jpre, PetscErrorCode (*func)(Tao tao, Vec x, Mat J, Mat Jpre, PetscCtx ctx), PetscCtx ctx)
509 if (Jpre) {
510 PetscValidHeaderSpecific(Jpre, MAT_CLASSID, 3);
511 PetscCheckSameComm(tao, 1, Jpre, 3);
520 if (Jpre) {
521 PetscCall(PetscObjectReference((PetscObject)Jpre));
523 tao->ls_jac_pre = Jpre;
538 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`. Only used if `Jinv` is `NULL`
548 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
556 PetscErrorCode TaoSetJacobianStateRoutine(Tao tao, Mat J, Mat Jpre, Mat Jinv, PetscErrorCode (*func)(Tao tao, Vec x, Mat J, Mat Jpre, Mat Jinv, PetscCtx ctx), PetscCtx ctx)
564 if (Jpre) {
565 PetscValidHeaderSpecific(Jpre, MAT_CLASSID, 3);
566 PetscCheckSameComm(tao, 1, Jpre, 3);
579 if (Jpre) {
580 PetscCall(PetscObjectReference((PetscObject)Jpre));
582 tao->jacobian_state_pre = Jpre;
674 - Jpre - matrix used to construct the preconditioner, often the same as `J`
684 PetscErrorCode TaoComputeJacobianEquality(Tao tao, Vec X, Mat J, Mat Jpre)
692 PetscCall(PetscLogEventBegin(TAO_JacobianEval, tao, X, J, Jpre));
693 PetscCallBack("Tao callback Jacobian(equality)", (*tao->ops->computejacobianequality)(tao, X, J, Jpre, tao->user_jac_equalityP));
694 PetscCall(PetscLogEventEnd(TAO_JacobianEval, tao, X, J, Jpre));
711 - Jpre - matrix used to construct the preconditioner
721 PetscErrorCode TaoComputeJacobianInequality(Tao tao, Vec X, Mat J, Mat Jpre)
729 PetscCall(PetscLogEventBegin(TAO_JacobianEval, tao, X, J, Jpre));
730 PetscCallBack("Tao callback Jacobian (inequality)", (*tao->ops->computejacobianinequality)(tao, X, J, Jpre, tao->user_jac_inequalityP));
731 PetscCall(PetscLogEventEnd(TAO_JacobianEval, tao, X, J, Jpre));
746 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`.
755 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
762 PetscErrorCode TaoSetJacobianEqualityRoutine(Tao tao, Mat J, Mat Jpre, PetscErrorCode (*func)(Tao tao, Vec x, Mat J, Mat Jpre, PetscCtx ctx), PetscCtx ctx)
770 if (Jpre) {
771 PetscValidHeaderSpecific(Jpre, MAT_CLASSID, 3);
772 PetscCheckSameComm(tao, 1, Jpre, 3);
781 if (Jpre) {
782 PetscCall(PetscObjectReference((PetscObject)Jpre));
784 tao->jacobian_equality_pre = Jpre;
799 . Jpre - the matrix used to construct the preconditioner
807 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
814 PetscErrorCode TaoGetJacobianEqualityRoutine(Tao tao, Mat *J, Mat *Jpre, PetscErrorCode (**func)(Tao tao, Vec x, Mat J, Mat Jpre, PetscCtx ctx), PetscCtxRt ctx)
819 if (Jpre) *Jpre = tao->jacobian_equality_pre;
835 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`.
844 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
851 PetscErrorCode TaoSetJacobianInequalityRoutine(Tao tao, Mat J, Mat Jpre, PetscErrorCode (*func)(Tao tao, Vec x, Mat J, Mat Jpre, PetscCtx ctx), PetscCtx ctx)
859 if (Jpre) {
860 PetscValidHeaderSpecific(Jpre, MAT_CLASSID, 3);
861 PetscCheckSameComm(tao, 1, Jpre, 3);
870 if (Jpre) {
871 PetscCall(PetscObjectReference((PetscObject)Jpre));
873 tao->jacobian_inequality_pre = Jpre;
888 . Jpre - the matrix used to construct the preconditioner
896 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
903 PetscErrorCode TaoGetJacobianInequalityRoutine(Tao tao, Mat *J, Mat *Jpre, PetscErrorCode (**func)(Tao tao, Vec x, Mat J, Mat Jpre, PetscCtx ctx), PetscCtxRt ctx)
908 if (Jpre) *Jpre = tao->jacobian_inequality_pre;