Lines Matching defs:J
122 PetscCall(PetscViewerASCIIPrintf(viewer, " Testing hand-coded Hessian, if (for double precision runs) ||J - Jfd||_F/||J||_F is\n"));
280 + J - Jacobian matrix
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));
321 + J - Jacobian matrix
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));
362 + J - Jacobian matrix
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));
400 . J - Jacobian matrix
410 PetscErrorCode TaoComputeJacobianDesign(Tao tao, Vec X, Mat J)
418 PetscCall(PetscLogEventBegin(TAO_JacobianEval, tao, X, J, NULL));
419 PetscCallBack("Tao callback Jacobian(design)", (*tao->ops->computejacobiandesign)(tao, X, J, tao->user_jac_designP));
420 PetscCall(PetscLogEventEnd(TAO_JacobianEval, tao, X, J, NULL));
432 . J - Matrix used for the Jacobian
433 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`
441 . J - Jacobian matrix
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)
453 if (J) {
454 PetscValidHeaderSpecific(J, MAT_CLASSID, 2);
455 PetscCheckSameComm(tao, 1, J, 2);
463 if (J) {
464 PetscCall(PetscObjectReference((PetscObject)J));
466 tao->jacobian = J;
484 . J - Matrix used for the jacobian
485 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`
493 . J - Jacobian matrix
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)
505 if (J) {
506 PetscValidHeaderSpecific(J, MAT_CLASSID, 2);
507 PetscCheckSameComm(tao, 1, J, 2);
515 if (J) {
516 PetscCall(PetscObjectReference((PetscObject)J));
518 tao->ls_jac = J;
537 . J - Matrix used for the Jacobian
538 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`. Only used if `Jinv` is `NULL`
547 . J - Jacobian matrix
548 . Jpre - matrix used to construct the preconditioner, usually the same as `J`
549 . Jinv - inverse of `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)
560 if (J) {
561 PetscValidHeaderSpecific(J, MAT_CLASSID, 2);
562 PetscCheckSameComm(tao, 1, J, 2);
574 if (J) {
575 PetscCall(PetscObjectReference((PetscObject)J));
577 tao->jacobian_state = J;
601 . J - Matrix used for the Jacobian
609 . J - Jacobian matrix
616 PetscErrorCode TaoSetJacobianDesignRoutine(Tao tao, Mat J, PetscErrorCode (*func)(Tao tao, Vec x, Mat J, PetscCtx ctx), PetscCtx ctx)
620 if (J) {
621 PetscValidHeaderSpecific(J, MAT_CLASSID, 2);
622 PetscCheckSameComm(tao, 1, J, 2);
626 if (J) {
627 PetscCall(PetscObjectReference((PetscObject)J));
629 tao->jacobian_design = J;
673 + J - Jacobian matrix
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));
710 + J - Jacobian matrix
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));
745 . J - Matrix used for the Jacobian
746 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`.
754 . J - Jacobian matrix
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)
766 if (J) {
767 PetscValidHeaderSpecific(J, MAT_CLASSID, 2);
768 PetscCheckSameComm(tao, 1, J, 2);
776 if (J) {
777 PetscCall(PetscObjectReference((PetscObject)J));
779 tao->jacobian_equality = J;
798 + J - the matrix to internally hold the constraint computation
806 . J - Jacobian matrix
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)
818 if (J) *J = tao->jacobian_equality;
834 . J - Matrix used for the Jacobian
835 . Jpre - Matrix that will be used to construct the preconditioner, can be same as `J`.
843 . J - Jacobian matrix
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)
855 if (J) {
856 PetscValidHeaderSpecific(J, MAT_CLASSID, 2);
857 PetscCheckSameComm(tao, 1, J, 2);
865 if (J) {
866 PetscCall(PetscObjectReference((PetscObject)J));
868 tao->jacobian_inequality = J;
887 + J - the matrix to internally hold the constraint computation
895 . J - Jacobian matrix
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)
907 if (J) *J = tao->jacobian_inequality;