1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/966382dc56242773704ef5f5cee7aa2db3ebc577/include/petscksp.h">Actual source code: petscksp.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-04-30T18:14:50+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#B22222">/*</font>
<a name="line2"> 2: </a><font color="#B22222"> Defines the interface functions for the Krylov subspace accelerators.</font>
<a name="line3"> 3: </a><font color="#B22222">*/</font>
<a name="line4"> 4: </a><font color="#A020F0">#pragma once</font>
<a name="line6"> 6: </a>#include <A href="../include/petscpc.h.html"><petscpc.h></A>
<a name="line8"> 8: </a><font color="#B22222">/* SUBMANSEC = <a href="../manualpages/KSP/KSP.html">KSP</a> */</font>
<a name="line10"> 10: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPInitializePackage.html">KSPInitializePackage</a>(void)</font></strong>;
<a name="line11"> 11: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFinalizePackage.html">KSPFinalizePackage</a>(void)</font></strong>;
<a name="line13"> 13: </a><font color="#B22222">/*S</font>
<a name="line14"> 14: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP.html">KSP</a> - Abstract PETSc object that manages the linear solves in PETSc (even those such as direct factorization-based solvers that</font>
<a name="line15"> 15: </a><font color="#B22222"> do not use Krylov accelerators).</font>
<a name="line17"> 17: </a><font color="#B22222"> Level: beginner</font>
<a name="line19"> 19: </a><font color="#B22222"> Notes:</font>
<a name="line20"> 20: </a><font color="#B22222"> When a direct solver is used, but no Krylov solver is used, the `<a href="../manualpages/KSP/KSP.html">KSP</a>` object is still used but with a</font>
<a name="line21"> 21: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` of `<a href="../manualpages/KSP/KSPPREONLY.html">KSPPREONLY</a>` (or equivalently `<a href="../manualpages/KSP/KSPNONE.html">KSPNONE</a>`), meaning that only application of the preconditioner is used as the linear solver.</font>
<a name="line23"> 23: </a><font color="#B22222"> Use `<a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>()` or the options database key `-ksp_type` to set the specific Krylov solver algorithm to use with a given `<a href="../manualpages/KSP/KSP.html">KSP</a>` object</font>
<a name="line25"> 25: </a><font color="#B22222"> The `<a href="../manualpages/PC/PC.html">PC</a>` object is used to control preconditioners in PETSc.</font>
<a name="line27"> 27: </a><font color="#B22222">.seealso: [](doc_linsolve), [](ch_ksp), `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`, `<a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>()`, `<a href="../manualpages/KSP/KSPType.html">KSPType</a>`, `<a href="../manualpages/SNES/SNES.html">SNES</a>`, `<a href="../manualpages/TS/TS.html">TS</a>`, `<a href="../manualpages/PC/PC.html">PC</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPDestroy.html">KSPDestroy</a>()`, `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`</font>
<a name="line28"> 28: </a><font color="#B22222">S*/</font>
<a name="line29"> 29: </a><font color="#4169E1">typedef struct _p_KSP *<a href="../manualpages/KSP/KSP.html">KSP</a>;</font>
<a name="line31"> 31: </a><font color="#B22222">/*J</font>
<a name="line32"> 32: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPType.html">KSPType</a> - String with the name of a PETSc Krylov method. These are all the Krylov solvers that PETSc provides.</font>
<a name="line34"> 34: </a><font color="#B22222"> Level: beginner</font>
<a name="line36"> 36: </a><font color="#B22222">.seealso: [](doc_linsolve), [](ch_ksp), `<a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>()`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPRegister.html">KSPRegister</a>()`, `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`, `<a href="../manualpages/KSP/KSPSetFromOptions.html">KSPSetFromOptions</a>()`</font>
<a name="line37"> 37: </a><font color="#B22222">J*/</font>
<a name="line38"> 38: </a><font color="#4169E1">typedef const char *<a href="../manualpages/KSP/KSPType.html">KSPType</a>;</font>
<a name="line39"> 39: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPRICHARDSON.html">KSPRICHARDSON</a> </font><font color="#666666">"richardson"</font><font color="#228B22"></font></strong>
<a name="line40"> 40: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCHEBYSHEV.html">KSPCHEBYSHEV</a> </font><font color="#666666">"chebyshev"</font><font color="#228B22"></font></strong>
<a name="line41"> 41: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCG.html">KSPCG</a> </font><font color="#666666">"cg"</font><font color="#228B22"></font></strong>
<a name="line42"> 42: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGROPPCG.html">KSPGROPPCG</a> </font><font color="#666666">"groppcg"</font><font color="#228B22"></font></strong>
<a name="line43"> 43: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECG.html">KSPPIPECG</a> </font><font color="#666666">"pipecg"</font><font color="#228B22"></font></strong>
<a name="line44"> 44: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECGRR.html">KSPPIPECGRR</a> </font><font color="#666666">"pipecgrr"</font><font color="#228B22"></font></strong>
<a name="line45"> 45: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPELCG.html">KSPPIPELCG</a> </font><font color="#666666">"pipelcg"</font><font color="#228B22"></font></strong>
<a name="line46"> 46: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEPRCG.html">KSPPIPEPRCG</a> </font><font color="#666666">"pipeprcg"</font><font color="#228B22"></font></strong>
<a name="line47"> 47: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECG2.html">KSPPIPECG2</a> </font><font color="#666666">"pipecg2"</font><font color="#228B22"></font></strong>
<a name="line48"> 48: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCGNE.html">KSPCGNE</a> </font><font color="#666666">"cgne"</font><font color="#228B22"></font></strong>
<a name="line49"> 49: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPNASH.html">KSPNASH</a> </font><font color="#666666">"nash"</font><font color="#228B22"></font></strong>
<a name="line50"> 50: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPSTCG.html">KSPSTCG</a> </font><font color="#666666">"stcg"</font><font color="#228B22"></font></strong>
<a name="line51"> 51: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGLTR.html">KSPGLTR</a> </font><font color="#666666">"gltr"</font><font color="#228B22"></font></strong>
<a name="line52"> 52: </a><strong><font color="#228B22">#define KSPCGNASH PETSC_DEPRECATED_MACRO(3, 11, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPNASH.html">KSPNASH</a>"</font><font color="#228B22">, ) </font><font color="#666666">"nash"</font><font color="#228B22"></font></strong>
<a name="line53"> 53: </a><strong><font color="#228B22">#define KSPCGSTCG PETSC_DEPRECATED_MACRO(3, 11, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPSTCG.html">KSPSTCG</a>"</font><font color="#228B22">, ) </font><font color="#666666">"stcg"</font><font color="#228B22"></font></strong>
<a name="line54"> 54: </a><strong><font color="#228B22">#define KSPCGGLTR PETSC_DEPRECATED_MACRO(3, 11, 0, </font><font color="#666666">"KSPSGLTR"</font><font color="#228B22">, ) </font><font color="#666666">"gltr"</font><font color="#228B22"></font></strong>
<a name="line55"> 55: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFCG.html">KSPFCG</a> </font><font color="#666666">"fcg"</font><font color="#228B22"></font></strong>
<a name="line56"> 56: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEFCG.html">KSPPIPEFCG</a> </font><font color="#666666">"pipefcg"</font><font color="#228B22"></font></strong>
<a name="line57"> 57: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a> </font><font color="#666666">"gmres"</font><font color="#228B22"></font></strong>
<a name="line58"> 58: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEFGMRES.html">KSPPIPEFGMRES</a> </font><font color="#666666">"pipefgmres"</font><font color="#228B22"></font></strong>
<a name="line59"> 59: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFGMRES.html">KSPFGMRES</a> </font><font color="#666666">"fgmres"</font><font color="#228B22"></font></strong>
<a name="line60"> 60: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPLGMRES.html">KSPLGMRES</a> </font><font color="#666666">"lgmres"</font><font color="#228B22"></font></strong>
<a name="line61"> 61: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPDGMRES.html">KSPDGMRES</a> </font><font color="#666666">"dgmres"</font><font color="#228B22"></font></strong>
<a name="line62"> 62: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPGMRES.html">KSPPGMRES</a> </font><font color="#666666">"pgmres"</font><font color="#228B22"></font></strong>
<a name="line63"> 63: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPTCQMR.html">KSPTCQMR</a> </font><font color="#666666">"tcqmr"</font><font color="#228B22"></font></strong>
<a name="line64"> 64: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPBCGS.html">KSPBCGS</a> </font><font color="#666666">"bcgs"</font><font color="#228B22"></font></strong>
<a name="line65"> 65: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPIBCGS.html">KSPIBCGS</a> </font><font color="#666666">"ibcgs"</font><font color="#228B22"></font></strong>
<a name="line66"> 66: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPQMRCGS.html">KSPQMRCGS</a> </font><font color="#666666">"qmrcgs"</font><font color="#228B22"></font></strong>
<a name="line67"> 67: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFBCGS.html">KSPFBCGS</a> </font><font color="#666666">"fbcgs"</font><font color="#228B22"></font></strong>
<a name="line68"> 68: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFBCGSR.html">KSPFBCGSR</a> </font><font color="#666666">"fbcgsr"</font><font color="#228B22"></font></strong>
<a name="line69"> 69: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPBCGSL.html">KSPBCGSL</a> </font><font color="#666666">"bcgsl"</font><font color="#228B22"></font></strong>
<a name="line70"> 70: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEBCGS.html">KSPPIPEBCGS</a> </font><font color="#666666">"pipebcgs"</font><font color="#228B22"></font></strong>
<a name="line71"> 71: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCGS.html">KSPCGS</a> </font><font color="#666666">"cgs"</font><font color="#228B22"></font></strong>
<a name="line72"> 72: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPTFQMR.html">KSPTFQMR</a> </font><font color="#666666">"tfqmr"</font><font color="#228B22"></font></strong>
<a name="line73"> 73: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCR.html">KSPCR</a> </font><font color="#666666">"cr"</font><font color="#228B22"></font></strong>
<a name="line74"> 74: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECR.html">KSPPIPECR</a> </font><font color="#666666">"pipecr"</font><font color="#228B22"></font></strong>
<a name="line75"> 75: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPLSQR.html">KSPLSQR</a> </font><font color="#666666">"lsqr"</font><font color="#228B22"></font></strong>
<a name="line76"> 76: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPREONLY.html">KSPPREONLY</a> </font><font color="#666666">"preonly"</font><font color="#228B22"></font></strong>
<a name="line77"> 77: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPNONE.html">KSPNONE</a> </font><font color="#666666">"none"</font><font color="#228B22"></font></strong>
<a name="line78"> 78: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPQCG.html">KSPQCG</a> </font><font color="#666666">"qcg"</font><font color="#228B22"></font></strong>
<a name="line79"> 79: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPBICG.html">KSPBICG</a> </font><font color="#666666">"bicg"</font><font color="#228B22"></font></strong>
<a name="line80"> 80: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPMINRES.html">KSPMINRES</a> </font><font color="#666666">"minres"</font><font color="#228B22"></font></strong>
<a name="line81"> 81: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPSYMMLQ.html">KSPSYMMLQ</a> </font><font color="#666666">"symmlq"</font><font color="#228B22"></font></strong>
<a name="line82"> 82: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPLCD.html">KSPLCD</a> </font><font color="#666666">"lcd"</font><font color="#228B22"></font></strong>
<a name="line83"> 83: </a><strong><font color="#228B22">#define KSPPYTHON </font><font color="#666666">"python"</font><font color="#228B22"></font></strong>
<a name="line84"> 84: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGCR.html">KSPGCR</a> </font><font color="#666666">"gcr"</font><font color="#228B22"></font></strong>
<a name="line85"> 85: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEGCR.html">KSPPIPEGCR</a> </font><font color="#666666">"pipegcr"</font><font color="#228B22"></font></strong>
<a name="line86"> 86: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPTSIRM.html">KSPTSIRM</a> </font><font color="#666666">"tsirm"</font><font color="#228B22"></font></strong>
<a name="line87"> 87: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCGLS.html">KSPCGLS</a> </font><font color="#666666">"cgls"</font><font color="#228B22"></font></strong>
<a name="line88"> 88: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFETIDP.html">KSPFETIDP</a> </font><font color="#666666">"fetidp"</font><font color="#228B22"></font></strong>
<a name="line89"> 89: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a> </font><font color="#666666">"hpddm"</font><font color="#228B22"></font></strong>
<a name="line91"> 91: </a><font color="#B22222">/* Logging support */</font>
<a name="line92"> 92: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> KSP_CLASSID;
<a name="line93"> 93: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> KSPGUESS_CLASSID;
<a name="line94"> 94: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> DMKSP_CLASSID;
<a name="line96"> 96: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line97"> 97: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPType.html">KSPType</a>)</font></strong>;
<a name="line98"> 98: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetType.html">KSPGetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPType.html">KSPType</a> *)</font></strong>;
<a name="line99"> 99: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUp.html">KSPSetUp</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line100">100: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUpOnBlocks.html">KSPSetUpOnBlocks</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line101">101: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line102">102: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSolveTranspose.html">KSPSolveTranspose</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line103">103: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUseExplicitTranspose.html">KSPSetUseExplicitTranspose</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line104">104: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMatSolve.html">KSPMatSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line105">105: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMatSolveTranspose.html">KSPMatSolveTranspose</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line106">106: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetMatSolveBatchSize.html">KSPSetMatSolveBatchSize</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line107">107: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPSetMatSolveBatchSize.html">KSPSetMatSolveBatchSize</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPSetMatSolveBlockSize(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n)
<a name="line108">108: </a>{
<a name="line109">109: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPSetMatSolveBatchSize.html">KSPSetMatSolveBatchSize</a>(ksp, n);
<a name="line110">110: </a>}
<a name="line111">111: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetMatSolveBatchSize.html">KSPGetMatSolveBatchSize</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line112">112: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPGetMatSolveBatchSize.html">KSPGetMatSolveBatchSize</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPGetMatSolveBlockSize(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *n)
<a name="line113">113: </a>{
<a name="line114">114: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPGetMatSolveBatchSize.html">KSPGetMatSolveBatchSize</a>(ksp, n);
<a name="line115">115: </a>}
<a name="line116">116: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPReset.html">KSPReset</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line117">117: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPResetViewers.html">KSPResetViewers</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line118">118: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPDestroy.html">KSPDestroy</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line119">119: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetReusePreconditioner.html">KSPSetReusePreconditioner</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line120">120: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetReusePreconditioner.html">KSPGetReusePreconditioner</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line121">121: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetSkipPCSetFromOptions.html">KSPSetSkipPCSetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line122">122: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCheckSolve.html">KSPCheckSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line124">124: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPList;
<a name="line125">125: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPGuessList;
<a name="line126">126: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPMonitorList;
<a name="line127">127: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPMonitorCreateList;
<a name="line128">128: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPMonitorDestroyList;
<a name="line129">129: </a><strong><font color="#4169E1"><a name="KSPRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPRegister.html">KSPRegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>);
<a name="line130">130: </a><strong><font color="#4169E1"><a name="KSPMonitorRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>(const char[], <a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *), <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **), <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(PetscViewerAndFormat **)</font></strong>);
<a name="line132">132: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPCSide.html">KSPSetPCSide</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PCSide.html">PCSide</a>)</font></strong>;
<a name="line133">133: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetPCSide.html">KSPGetPCSide</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PCSide.html">PCSide</a> *)</font></strong>;
<a name="line134">134: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line135">135: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetTolerances.html">KSPGetTolerances</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line136">136: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetMinimumIterations.html">KSPSetMinimumIterations</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line137">137: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetMinimumIterations.html">KSPGetMinimumIterations</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line138">138: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetInitialGuessNonzero.html">KSPSetInitialGuessNonzero</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line139">139: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetInitialGuessNonzero.html">KSPGetInitialGuessNonzero</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line140">140: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetErrorIfNotConverged.html">KSPSetErrorIfNotConverged</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line141">141: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetErrorIfNotConverged.html">KSPGetErrorIfNotConverged</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line142">142: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeEigenvalues.html">KSPSetComputeEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line143">143: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeRitz.html">KSPSetComputeRitz</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line144">144: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetComputeEigenvalues.html">KSPGetComputeEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line145">145: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeSingularValues.html">KSPSetComputeSingularValues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line146">146: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetComputeSingularValues.html">KSPGetComputeSingularValues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line147">147: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetRhs.html">KSPGetRhs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line148">148: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetSolution.html">KSPGetSolution</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line149">149: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetResidualNorm.html">KSPGetResidualNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line150">150: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetIterationNumber.html">KSPGetIterationNumber</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line151">151: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetTotalIterations.html">KSPGetTotalIterations</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line152">152: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCreateVecs.html">KSPCreateVecs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> **, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> **)</font></strong>;
<a name="line153">153: </a>PETSC_DEPRECATED_FUNCTION(3, 6, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPCreateVecs.html">KSPCreateVecs</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPGetVecs(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Vec/Vec.html">Vec</a> **x, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> m, <a href="../manualpages/Vec/Vec.html">Vec</a> **y)
<a name="line154">154: </a>{
<a name="line155">155: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPCreateVecs.html">KSPCreateVecs</a>(ksp, n, x, m, y);
<a name="line156">156: </a>}
<a name="line158">158: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPreSolve.html">KSPSetPreSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, void *), void *)</font></strong>;
<a name="line159">159: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPostSolve.html">KSPSetPostSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, void *), void *)</font></strong>;
<a name="line161">161: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPC.html">KSPSetPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a>)</font></strong>;
<a name="line162">162: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetPC.html">KSPGetPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a> *)</font></strong>;
<a name="line163">163: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetNestLevel.html">KSPSetNestLevel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line164">164: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetNestLevel.html">KSPGetNestLevel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line166">166: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitor.html">KSPMonitor</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line167">167: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *), void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line168">168: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorCancel.html">KSPMonitorCancel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line169">169: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetMonitorContext.html">KSPGetMonitorContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line170">170: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetResidualHistory.html">KSPGetResidualHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line171">171: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetResidualHistory.html">KSPSetResidualHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line172">172: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetErrorHistory.html">KSPGetErrorHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line173">173: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetErrorHistory.html">KSPSetErrorHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line175">175: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPBuildSolutionDefault(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line176">176: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBuildResidualDefault.html">KSPBuildResidualDefault</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line177">177: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPDestroyDefault(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line178">178: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetWorkVecs.html">KSPSetWorkVecs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line180">180: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCKSPGetKSP.html">PCKSPGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line181">181: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCKSPSetKSP.html">PCKSPSetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line182">182: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCBJacobiGetSubKSP.html">PCBJacobiGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line183">183: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCASMGetSubKSP.html">PCASMGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line184">184: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCGASMGetSubKSP.html">PCGASMGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line185">185: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PCPatchGetSubKSP(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line186">186: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCFieldSplitGetSubKSP.html">PCFieldSplitGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line187">187: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCFieldSplitSchurGetSubKSP.html">PCFieldSplitSchurGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line188">188: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetSmoother.html">PCMGGetSmoother</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line189">189: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetSmootherDown.html">PCMGGetSmootherDown</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line190">190: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetSmootherUp.html">PCMGGetSmootherUp</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line191">191: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetCoarseSolve.html">PCMGGetCoarseSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line192">192: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCGalerkinGetKSP.html">PCGalerkinGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line193">193: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCDeflationGetCoarseKSP.html">PCDeflationGetCoarseKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line194">194: </a><font color="#B22222">/*</font>
<a name="line195">195: </a><font color="#B22222"> PCMGCoarseList contains the list of coarse space constructor currently registered</font>
<a name="line196">196: </a><font color="#B22222"> These are added with <a href="../manualpages/PC/PCMGRegisterCoarseSpaceConstructor.html">PCMGRegisterCoarseSpaceConstructor</a>()</font>
<a name="line197">197: </a><font color="#B22222">*/</font>
<a name="line198">198: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> PCMGCoarseList;
<a name="line199">199: </a><strong><font color="#4169E1"><a name="PCMGRegisterCoarseSpaceConstructor"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGRegisterCoarseSpaceConstructor.html">PCMGRegisterCoarseSpaceConstructor</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>);
<a name="line200">200: </a><strong><font color="#4169E1"><a name="PCMGGetCoarseSpaceConstructor"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetCoarseSpaceConstructor.html">PCMGGetCoarseSpaceConstructor</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>);
<a name="line202">202: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBuildSolution.html">KSPBuildSolution</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line203">203: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBuildResidual.html">KSPBuildResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line205">205: </a><font color="#B22222">/*E</font>
<a name="line206">206: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a> - Which kind of Chebyshev polynomial to use with `<a href="../manualpages/KSP/KSPCHEBYSHEV.html">KSPCHEBYSHEV</a>`</font>
<a name="line208">208: </a><font color="#B22222"> Values:</font>
<a name="line209">209: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FIRST</a>` - "classic" first-kind Chebyshev polynomial</font>
<a name="line210">210: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FOURTH</a>` - fourth-kind Chebyshev polynomial</font>
<a name="line211">211: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_OPT_FOURTH</a>` - optimized fourth-kind Chebyshev polynomial</font>
<a name="line213">213: </a><font color="#B22222"> Level: intermediate</font>
<a name="line215">215: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPCHEBYSHEV.html">KSPCHEBYSHEV</a>`, `<a href="../manualpages/KSP/KSPChebyshevSetKind.html">KSPChebyshevSetKind</a>()`, `<a href="../manualpages/KSP/KSPChebyshevGetKind.html">KSPChebyshevGetKind</a>()`</font>
<a name="line216">216: </a><font color="#B22222">E*/</font>
<a name="line217">217: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line218">218: </a> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FIRST</a>,
<a name="line219">219: </a> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FOURTH</a>,
<a name="line220">220: </a> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_OPT_FOURTH</a>
<a name="line221">221: </a>} <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a>;
<a name="line223">223: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPRichardsonSetScale.html">KSPRichardsonSetScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line224">224: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPRichardsonSetSelfScale.html">KSPRichardsonSetSelfScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line225">225: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevSetEigenvalues.html">KSPChebyshevSetEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line226">226: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevEstEigSet.html">KSPChebyshevEstEigSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line227">227: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevEstEigSetUseNoisy.html">KSPChebyshevEstEigSetUseNoisy</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line228">228: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevSetKind.html">KSPChebyshevSetKind</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a>)</font></strong>;
<a name="line229">229: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevGetKind.html">KSPChebyshevGetKind</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a> *)</font></strong>;
<a name="line230">230: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevEstEigGetKSP.html">KSPChebyshevEstEigGetKSP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line231">231: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeExtremeSingularValues.html">KSPComputeExtremeSingularValues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line232">232: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeEigenvalues.html">KSPComputeEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line233">233: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeEigenvaluesExplicitly.html">KSPComputeEigenvaluesExplicitly</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[])</font></strong>;
<a name="line234">234: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeRitz.html">KSPComputeRitz</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Vec/Vec.html">Vec</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[])</font></strong>;
<a name="line236">236: </a><font color="#B22222">/*E</font>
<a name="line238">238: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> - Define how stored directions are used to orthogonalize in flexible conjugate directions (FCD) methods</font>
<a name="line240">240: </a><font color="#B22222"> Values:</font>
<a name="line241">241: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_STANDARD</a>` - uses all (up to mmax) stored directions</font>
<a name="line242">242: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_NOTAY</a>` - uses the last max(1,mod(i,mmax)) stored directions at iteration i=0,1..</font>
<a name="line244">244: </a><font color="#B22222"> Level: intermediate</font>
<a name="line246">246: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPFCG.html">KSPFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEFCG.html">KSPPIPEFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEGCR.html">KSPPIPEGCR</a>`, `<a href="../manualpages/KSP/KSPFCGSetTruncationType.html">KSPFCGSetTruncationType</a>()`, `<a href="../manualpages/KSP/KSPFCGGetTruncationType.html">KSPFCGGetTruncationType</a>()`</font>
<a name="line247">247: </a><font color="#B22222">E*/</font>
<a name="line248">248: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line249">249: </a> <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_STANDARD</a>,
<a name="line250">250: </a> <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_NOTAY</a>
<a name="line251">251: </a>} <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>;
<a name="line252">252: </a>PETSC_EXTERN const char *const KSPFCDTruncationTypes[];
<a name="line254">254: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGSetMmax.html">KSPFCGSetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line255">255: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGGetMmax.html">KSPFCGGetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line256">256: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGSetNprealloc.html">KSPFCGSetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line257">257: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGGetNprealloc.html">KSPFCGGetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line258">258: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGSetTruncationType.html">KSPFCGSetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>)</font></strong>;
<a name="line259">259: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGGetTruncationType.html">KSPFCGGetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> *)</font></strong>;
<a name="line261">261: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGSetMmax.html">KSPPIPEFCGSetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line262">262: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGGetMmax.html">KSPPIPEFCGGetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line263">263: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGSetNprealloc.html">KSPPIPEFCGSetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line264">264: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGGetNprealloc.html">KSPPIPEFCGGetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line265">265: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGSetTruncationType.html">KSPPIPEFCGSetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>)</font></strong>;
<a name="line266">266: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGGetTruncationType.html">KSPPIPEFCGGetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> *)</font></strong>;
<a name="line268">268: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetMmax.html">KSPPIPEGCRSetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line269">269: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetMmax.html">KSPPIPEGCRGetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line270">270: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetNprealloc.html">KSPPIPEGCRSetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line271">271: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetNprealloc.html">KSPPIPEGCRGetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line272">272: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetTruncationType.html">KSPPIPEGCRSetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>)</font></strong>;
<a name="line273">273: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetTruncationType.html">KSPPIPEGCRGetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> *)</font></strong>;
<a name="line274">274: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetUnrollW.html">KSPPIPEGCRSetUnrollW</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line275">275: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetUnrollW.html">KSPPIPEGCRGetUnrollW</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line276">276: </a><strong><font color="#4169E1"><a name="KSPPIPEGCRSetModifyPC"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetModifyPC.html">KSPPIPEGCRSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *), void *, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(void *)</font></strong>);
<a name="line278">278: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetRestart.html">KSPGMRESSetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line279">279: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESGetRestart.html">KSPGMRESGetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line280">280: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetHapTol.html">KSPGMRESSetHapTol</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line281">281: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetBreakdownTolerance.html">KSPGMRESSetBreakdownTolerance</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line283">283: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetPreAllocateVectors.html">KSPGMRESSetPreAllocateVectors</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line284">284: </a><strong><font color="#4169E1"><a name="KSPGMRESSetOrthogonalization"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>);
<a name="line285">285: </a><strong><font color="#4169E1"><a name="KSPGMRESGetOrthogonalization"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>);
<a name="line286">286: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line287">287: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line289">289: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLGMRESSetAugDim.html">KSPLGMRESSetAugDim</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line290">290: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLGMRESSetConstant.html">KSPLGMRESSetConstant</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line292">292: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFGMRESSetShift.html">KSPPIPEFGMRESSetShift</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>)</font></strong>;
<a name="line294">294: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGCRSetRestart.html">KSPGCRSetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line295">295: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGCRGetRestart.html">KSPGCRGetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line296">296: </a><strong><font color="#4169E1"><a name="KSPGCRSetModifyPC"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGCRSetModifyPC.html">KSPGCRSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *), void *, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(void *)</font></strong>);
<a name="line298">298: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMINRESSetRadius.html">KSPMINRESSetRadius</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line299">299: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMINRESGetUseQLP.html">KSPMINRESGetUseQLP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line300">300: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMINRESSetUseQLP.html">KSPMINRESSetUseQLP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line302">302: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPGetInnerBDDC.html">KSPFETIDPGetInnerBDDC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a> *)</font></strong>;
<a name="line303">303: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPSetInnerBDDC.html">KSPFETIDPSetInnerBDDC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a>)</font></strong>;
<a name="line304">304: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPGetInnerKSP.html">KSPFETIDPGetInnerKSP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line305">305: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPSetPressureOperator.html">KSPFETIDPSetPressureOperator</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line307">307: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMSetDeflationMat.html">KSPHPDDMSetDeflationMat</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line308">308: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMGetDeflationMat.html">KSPHPDDMGetDeflationMat</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line309">309: </a><font color="#A020F0">#if <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(HAVE_HPDDM)</font>
<a name="line310">310: </a>PETSC_DEPRECATED_FUNCTION(3, 18, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPHPDDMSetDeflationMat.html">KSPHPDDMSetDeflationMat</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPHPDDMSetDeflationSpace(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> U)
<a name="line311">311: </a>{
<a name="line312">312: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPHPDDMSetDeflationMat.html">KSPHPDDMSetDeflationMat</a>(ksp, U);
<a name="line313">313: </a>}
<a name="line314">314: </a>PETSC_DEPRECATED_FUNCTION(3, 18, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPHPDDMGetDeflationMat.html">KSPHPDDMGetDeflationMat</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPHPDDMGetDeflationSpace(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> *U)
<a name="line315">315: </a>{
<a name="line316">316: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPHPDDMGetDeflationMat.html">KSPHPDDMGetDeflationMat</a>(ksp, U);
<a name="line317">317: </a>}
<a name="line318">318: </a><font color="#A020F0">#endif</font>
<a name="line319">319: </a>PETSC_DEPRECATED_FUNCTION(3, 14, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMatSolve.html">KSPMatSolve</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPHPDDMMatSolve(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> B, <a href="../manualpages/Mat/Mat.html">Mat</a> X)
<a name="line320">320: </a>{
<a name="line321">321: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMatSolve.html">KSPMatSolve</a>(ksp, B, X);
<a name="line322">322: </a>}
<a name="line323">323: </a><font color="#B22222">/*E</font>
<a name="line324">324: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a> - Type of Krylov method used by `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`</font>
<a name="line326">326: </a><font color="#B22222"> Values:</font>
<a name="line327">327: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GMRES</a>` (default) - Generalized Minimal Residual method</font>
<a name="line328">328: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGMRES</a>` - block GMRES</font>
<a name="line329">329: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_CG</a>` - Conjugate Gradient</font>
<a name="line330">330: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BCG</a>` - block CG</font>
<a name="line331">331: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GCRODR</a>` - Generalized Conjugate Residual method with inner Orthogonalization and Deflated Restarting</font>
<a name="line332">332: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGCRODR</a>` - block GCRODR</font>
<a name="line333">333: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BFBCG</a>` - breakdown-free BCG</font>
<a name="line334">334: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_PREONLY</a>` - apply the preconditioner only</font>
<a name="line336">336: </a><font color="#B22222"> Level: intermediate</font>
<a name="line338">338: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`, `<a href="../manualpages/KSP/KSPHPDDMSetType.html">KSPHPDDMSetType</a>()`</font>
<a name="line339">339: </a><font color="#B22222">E*/</font>
<a name="line340">340: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line341">341: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GMRES</a> = 0,
<a name="line342">342: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGMRES</a> = 1,
<a name="line343">343: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_CG</a> = 2,
<a name="line344">344: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BCG</a> = 3,
<a name="line345">345: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GCRODR</a> = 4,
<a name="line346">346: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGCRODR</a> = 5,
<a name="line347">347: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BFBCG</a> = 6,
<a name="line348">348: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_PREONLY</a> = 7
<a name="line349">349: </a>} <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a>;
<a name="line350">350: </a>PETSC_EXTERN const char *const KSPHPDDMTypes[];
<a name="line352">352: </a><font color="#B22222">/*E</font>
<a name="line353">353: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSPHPDDMPrecision</a> - Precision of Krylov bases used by `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`</font>
<a name="line355">355: </a><font color="#B22222"> Values:</font>
<a name="line356">356: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_HALF</a>` - default when PETSc is configured `--with-precision=__fp16`</font>
<a name="line357">357: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_SINGLE</a>` - default when PETSc is configured `--with-precision=single`</font>
<a name="line358">358: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_DOUBLE</a>` - default when PETSc is configured `--with-precision=double`</font>
<a name="line359">359: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_QUADRUPLE</a>` - default when PETSc is configured `--with-precision=__float128`</font>
<a name="line361">361: </a><font color="#B22222"> Level: intermediate</font>
<a name="line363">363: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`</font>
<a name="line364">364: </a><font color="#B22222">E*/</font>
<a name="line365">365: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line366">366: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_HALF</a> = 0,
<a name="line367">367: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_SINGLE</a> = 1,
<a name="line368">368: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_DOUBLE</a> = 2,
<a name="line369">369: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_QUADRUPLE</a> = 3
<a name="line370">370: </a>} <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSPHPDDMPrecision</a>;
<a name="line371">371: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMSetType.html">KSPHPDDMSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a>)</font></strong>;
<a name="line372">372: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMGetType.html">KSPHPDDMGetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a> *)</font></strong>;
<a name="line374">374: </a><font color="#B22222">/*E</font>
<a name="line375">375: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a> - How the classical (unmodified) Gram-Schmidt is performed in the GMRES solvers</font>
<a name="line377">377: </a><font color="#B22222"> Values:</font>
<a name="line378">378: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>` - one step of classical Gram-Schmidt</font>
<a name="line379">379: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>` - a second step is performed if the first step does not satisfy some criteria</font>
<a name="line380">380: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>` - always perform two steps</font>
<a name="line382">382: </a><font color="#B22222"> Level: advanced</font>
<a name="line384">384: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line385">385: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line386">386: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line387">387: </a><font color="#B22222">E*/</font>
<a name="line388">388: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line389">389: </a> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>,
<a name="line390">390: </a> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>,
<a name="line391">391: </a> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>
<a name="line392">392: </a>} <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>;
<a name="line393">393: </a>PETSC_EXTERN const char *const KSPGMRESCGSRefinementTypes[];
<a name="line395">395: </a><font color="#B22222">/*MC</font>
<a name="line396">396: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a> - Do the classical (unmodified) Gram-Schmidt process</font>
<a name="line398">398: </a><font color="#B22222"> Level: advanced</font>
<a name="line400">400: </a><font color="#B22222"> Note:</font>
<a name="line401">401: </a><font color="#B22222"> Possibly unstable, but the fastest to compute</font>
<a name="line403">403: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line404">404: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line405">405: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>`,</font>
<a name="line406">406: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line407">407: </a><font color="#B22222">M*/</font>
<a name="line409">409: </a><font color="#B22222">/*MC</font>
<a name="line410">410: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a> - Do the classical (unmodified) Gram-Schmidt process and one step of</font>
<a name="line411">411: </a><font color="#B22222"> iterative refinement if an estimate of the orthogonality of the resulting vectors indicates</font>
<a name="line412">412: </a><font color="#B22222"> poor orthogonality.</font>
<a name="line414">414: </a><font color="#B22222"> Level: advanced</font>
<a name="line416">416: </a><font color="#B22222"> Note:</font>
<a name="line417">417: </a><font color="#B22222"> This is slower than `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>` because it requires an extra norm computation to</font>
<a name="line418">418: </a><font color="#B22222"> estimate the orthogonality but is more stable.</font>
<a name="line420">420: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line421">421: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line422">422: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>`,</font>
<a name="line423">423: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line424">424: </a><font color="#B22222">M*/</font>
<a name="line426">426: </a><font color="#B22222">/*MC</font>
<a name="line427">427: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a> - Do two steps of the classical (unmodified) Gram-Schmidt process.</font>
<a name="line429">429: </a><font color="#B22222"> Level: advanced</font>
<a name="line431">431: </a><font color="#B22222"> Notes:</font>
<a name="line432">432: </a><font color="#B22222"> This is roughly twice the cost of `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>` because it performs the process twice</font>
<a name="line433">433: </a><font color="#B22222"> but it saves the extra norm calculation needed by `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>`.</font>
<a name="line435">435: </a><font color="#B22222"> You should only use this if you absolutely know that the iterative refinement is needed.</font>
<a name="line437">437: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line438">438: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line439">439: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>`,</font>
<a name="line440">440: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line441">441: </a><font color="#B22222">M*/</font>
<a name="line443">443: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>)</font></strong>;
<a name="line444">444: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a> *)</font></strong>;
<a name="line446">446: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFGMRESModifyPCNoChange.html">KSPFGMRESModifyPCNoChange</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line447">447: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFGMRESModifyPCKSP.html">KSPFGMRESModifyPCKSP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line448">448: </a><strong><font color="#4169E1"><a name="KSPFGMRESSetModifyPC"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFGMRESSetModifyPC.html">KSPFGMRESSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *), void *, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(void *)</font></strong>);
<a name="line450">450: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPQCGSetTrustRegionRadius.html">KSPQCGSetTrustRegionRadius</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line451">451: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPQCGGetQuadratic.html">KSPQCGGetQuadratic</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line452">452: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPQCGGetTrialStepNorm.html">KSPQCGGetTrialStepNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line454">454: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetXRes.html">KSPBCGSLSetXRes</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line455">455: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetPol.html">KSPBCGSLSetPol</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line456">456: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetEll.html">KSPBCGSLSetEll</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line457">457: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetUsePseudoinverse.html">KSPBCGSLSetUsePseudoinverse</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line459">459: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetFromOptions.html">KSPSetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line460">460: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPResetFromOptions.html">KSPResetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line462">462: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSetFromOptions.html">KSPMonitorSetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[], const char[], void *)</font></strong>;
<a name="line463">463: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorResidual.html">KSPMonitorResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line464">464: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorResidualDraw.html">KSPMonitorResidualDraw</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line465">465: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorResidualDrawLG.html">KSPMonitorResidualDrawLG</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line466">466: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorResidualDrawLGCreate.html">KSPMonitorResidualDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line467">467: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorResidualShort(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line468">468: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorResidualRange.html">KSPMonitorResidualRange</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line469">469: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorTrueResidual.html">KSPMonitorTrueResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line470">470: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualDraw.html">KSPMonitorTrueResidualDraw</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line471">471: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualDrawLG.html">KSPMonitorTrueResidualDrawLG</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line472">472: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualDrawLGCreate.html">KSPMonitorTrueResidualDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line473">473: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualMax.html">KSPMonitorTrueResidualMax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line474">474: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorError.html">KSPMonitorError</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line475">475: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorErrorDraw.html">KSPMonitorErrorDraw</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line476">476: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorErrorDrawLG.html">KSPMonitorErrorDrawLG</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line477">477: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorErrorDrawLGCreate.html">KSPMonitorErrorDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line478">478: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSolution.html">KSPMonitorSolution</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line479">479: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSolutionDraw.html">KSPMonitorSolutionDraw</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line480">480: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSolutionDrawLG.html">KSPMonitorSolutionDrawLG</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line481">481: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSolutionDrawLGCreate.html">KSPMonitorSolutionDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line482">482: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSingularValue.html">KSPMonitorSingularValue</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line483">483: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSingularValueCreate.html">KSPMonitorSingularValueCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line484">484: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMonitorResidual.html">KSPMonitorResidual</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorDefault(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line485">485: </a>{
<a name="line486">486: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorResidual.html">KSPMonitorResidual</a>(ksp, n, rnorm, vf);
<a name="line487">487: </a>}
<a name="line488">488: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMonitorTrueResidual.html">KSPMonitorTrueResidual</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorTrueResidualNorm(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line489">489: </a>{
<a name="line490">490: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorTrueResidual.html">KSPMonitorTrueResidual</a>(ksp, n, rnorm, vf);
<a name="line491">491: </a>}
<a name="line492">492: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMonitorTrueResidualMax.html">KSPMonitorTrueResidualMax</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorTrueResidualMaxNorm(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line493">493: </a>{
<a name="line494">494: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorTrueResidualMax.html">KSPMonitorTrueResidualMax</a>(ksp, n, rnorm, vf);
<a name="line495">495: </a>}
<a name="line497">497: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESMonitorKrylov.html">KSPGMRESMonitorKrylov</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line498">498: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicTolerance.html">KSPMonitorDynamicTolerance</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line499">499: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicToleranceDestroy.html">KSPMonitorDynamicToleranceDestroy</a>(void **)</font></strong>;
<a name="line500">500: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicToleranceCreate.html">KSPMonitorDynamicToleranceCreate</a>(void *)</font></strong>;
<a name="line501">501: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicToleranceSetCoefficient.html">KSPMonitorDynamicToleranceSetCoefficient</a>(void *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line502">502: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSAWs.html">KSPMonitorSAWs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line503">503: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSAWsCreate.html">KSPMonitorSAWsCreate</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void **)</font></strong>;
<a name="line504">504: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSAWsDestroy.html">KSPMonitorSAWsDestroy</a>(void **)</font></strong>;
<a name="line506">506: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPUnwindPreconditioner.html">KSPUnwindPreconditioner</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line507">507: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPInitialResidual.html">KSPInitialResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line509">509: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetOperators.html">KSPSetOperators</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line510">510: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetOperators.html">KSPGetOperators</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line511">511: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetOperatorsSet.html">KSPGetOperatorsSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line512">512: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetOptionsPrefix.html">KSPSetOptionsPrefix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[])</font></strong>;
<a name="line513">513: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPAppendOptionsPrefix.html">KSPAppendOptionsPrefix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[])</font></strong>;
<a name="line514">514: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetOptionsPrefix.html">KSPGetOptionsPrefix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char *[])</font></strong>;
<a name="line516">516: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDiagonalScale.html">KSPSetDiagonalScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line517">517: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetDiagonalScale.html">KSPGetDiagonalScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line518">518: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDiagonalScaleFix.html">KSPSetDiagonalScaleFix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line519">519: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetDiagonalScaleFix.html">KSPGetDiagonalScaleFix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line521">521: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPView.html">KSPView</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line522">522: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLoad.html">KSPLoad</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line523">523: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPViewFromOptions.html">KSPViewFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, const char[])</font></strong>;
<a name="line524">524: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line525">525: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewSet.html">KSPConvergedReasonViewSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *), void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line526">526: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line527">527: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewCancel.html">KSPConvergedReasonViewCancel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line528">528: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedRateView.html">KSPConvergedRateView</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line530">530: </a>PETSC_DEPRECATED_FUNCTION(3, 14, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPReasonView(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> v)
<a name="line531">531: </a>{
<a name="line532">532: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>(ksp, v);
<a name="line533">533: </a>}
<a name="line534">534: </a>PETSC_DEPRECATED_FUNCTION(3, 14, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPReasonViewFromOptions(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp)
<a name="line535">535: </a>{
<a name="line536">536: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>(ksp);
<a name="line537">537: </a>}
<a name="line539">539: </a><strong><font color="#228B22">#define KSP_FILE_CLASSID 1211223</font></strong>
<a name="line541">541: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRSetExactMatNorm.html">KSPLSQRSetExactMatNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line542">542: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRSetComputeStandardErrorVec.html">KSPLSQRSetComputeStandardErrorVec</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line543">543: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRGetStandardErrorVec.html">KSPLSQRGetStandardErrorVec</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line544">544: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRGetNorms.html">KSPLSQRGetNorms</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line545">545: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRMonitorResidual.html">KSPLSQRMonitorResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line546">546: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRMonitorResidualDrawLG.html">KSPLSQRMonitorResidualDrawLG</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, PetscViewerAndFormat *)</font></strong>;
<a name="line547">547: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRMonitorResidualDrawLGCreate.html">KSPLSQRMonitorResidualDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line549">549: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCRedundantGetKSP.html">PCRedundantGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line550">550: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCRedistributeGetKSP.html">PCRedistributeGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line551">551: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCTelescopeGetKSP.html">PCTelescopeGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line552">552: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMPIGetKSP.html">PCMPIGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line554">554: </a><font color="#B22222">/*E</font>
<a name="line555">555: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a> - Norm calculated by the `<a href="../manualpages/KSP/KSP.html">KSP</a>` and passed in the Krylov convergence</font>
<a name="line556">556: </a><font color="#B22222"> test routines.</font>
<a name="line558">558: </a><font color="#B22222"> Values:</font>
<a name="line559">559: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPNormType.html">KSP_NORM_DEFAULT</a>` - use the default for the current `<a href="../manualpages/KSP/KSPType.html">KSPType</a>`</font>
<a name="line560">560: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>` - use no norm calculation</font>
<a name="line561">561: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>` - use the preconditioned residual norm</font>
<a name="line562">562: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>` - use the unpreconditioned residual norm</font>
<a name="line563">563: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>` - use the natural norm (the norm induced by the linear operator)</font>
<a name="line565">565: </a><font color="#B22222"> Level: advanced</font>
<a name="line567">567: </a><font color="#B22222"> Note:</font>
<a name="line568">568: </a><font color="#B22222"> Each solver only supports a subset of these and some may support different ones</font>
<a name="line569">569: </a><font color="#B22222"> depending on whether left or right preconditioning is used, see `<a href="../manualpages/KSP/KSPSetPCSide.html">KSPSetPCSide</a>()`</font>
<a name="line571">571: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/PC/PCSide.html">PCSide</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`,</font>
<a name="line572">572: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`, `<a href="../manualpages/KSP/KSPSetPCSide.html">KSPSetPCSide</a>()`, `<a href="../manualpages/KSP/KSPNormType.html">KSP_NORM_DEFAULT</a>`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`</font>
<a name="line573">573: </a><font color="#B22222">E*/</font>
<a name="line574">574: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line575">575: </a> <a href="../manualpages/KSP/KSPNormType.html">KSP_NORM_DEFAULT</a> = -1,
<a name="line576">576: </a> <a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a> = 0,
<a name="line577">577: </a> <a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a> = 1,
<a name="line578">578: </a> <a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a> = 2,
<a name="line579">579: </a> <a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a> = 3
<a name="line580">580: </a>} <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>;
<a name="line581">581: </a><strong><font color="#228B22">#define KSP_NORM_MAX (<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a> + 1)</font></strong>
<a name="line582">582: </a>PETSC_EXTERN const char *const *const KSPNormTypes;
<a name="line584">584: </a><font color="#B22222">/*MC</font>
<a name="line585">585: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a> - Do not compute a norm during the Krylov process. This will</font>
<a name="line586">586: </a><font color="#B22222"> possibly save some computation but means the convergence test cannot</font>
<a name="line587">587: </a><font color="#B22222"> be based on a norm of a residual etc.</font>
<a name="line589">589: </a><font color="#B22222"> Level: advanced</font>
<a name="line591">591: </a><font color="#B22222"> Note:</font>
<a name="line592">592: </a><font color="#B22222"> Some Krylov methods need to compute a residual norm (such as `KPSGMRES`) and then this option is ignored</font>
<a name="line594">594: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`</font>
<a name="line595">595: </a><font color="#B22222">M*/</font>
<a name="line597">597: </a><font color="#B22222">/*MC</font>
<a name="line598">598: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a> - Compute the norm of the preconditioned residual B*(b - A*x), if left preconditioning, and pass that to the</font>
<a name="line599">599: </a><font color="#B22222"> convergence test routine.</font>
<a name="line601">601: </a><font color="#B22222"> Level: advanced</font>
<a name="line603">603: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line604">604: </a><font color="#B22222">M*/</font>
<a name="line606">606: </a><font color="#B22222">/*MC</font>
<a name="line607">607: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a> - Compute the norm of the true residual (b - A*x) and pass that to the</font>
<a name="line608">608: </a><font color="#B22222"> convergence test routine.</font>
<a name="line610">610: </a><font color="#B22222"> Level: advanced</font>
<a name="line612">612: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line613">613: </a><font color="#B22222">M*/</font>
<a name="line615">615: </a><font color="#B22222">/*MC</font>
<a name="line616">616: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a> - Compute the 'natural norm' of residual sqrt((b - A*x)*B*(b - A*x)) and pass that to the</font>
<a name="line617">617: </a><font color="#B22222"> convergence test routine. This is only supported by `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPCR.html">KSPCR</a>`, `<a href="../manualpages/KSP/KSPCGNE.html">KSPCGNE</a>`, `<a href="../manualpages/KSP/KSPCGS.html">KSPCGS</a>`, `<a href="../manualpages/KSP/KSPFCG.html">KSPFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEFCG.html">KSPPIPEFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEGCR.html">KSPPIPEGCR</a>`</font>
<a name="line619">619: </a><font color="#B22222"> Level: advanced</font>
<a name="line621">621: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line622">622: </a><font color="#B22222">M*/</font>
<a name="line624">624: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>)</font></strong>;
<a name="line625">625: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetNormType.html">KSPGetNormType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a> *)</font></strong>;
<a name="line626">626: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetSupportedNorm.html">KSPSetSupportedNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>, <a href="../manualpages/PC/PCSide.html">PCSide</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line627">627: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetCheckNormIteration.html">KSPSetCheckNormIteration</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line628">628: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetLagNorm.html">KSPSetLagNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line630">630: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_NEG_CURVE_DEPRECATED</a> KSP_CONVERGED_CG_NEG_CURVE PETSC_DEPRECATED_ENUM(3, 19, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a>"</font><font color="#228B22">, )</font></strong>
<a name="line631">631: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_CONSTRAINED_DEPRECATED</a> KSP_CONVERGED_CG_CONSTRAINED PETSC_DEPRECATED_ENUM(3, 19, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a>"</font><font color="#228B22">, )</font></strong>
<a name="line632">632: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED</a> KSP_DIVERGED_PCSETUP_FAILED PETSC_DEPRECATED_ENUM(3, 11, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a>"</font><font color="#228B22">, )</font></strong>
<a name="line633">633: </a><font color="#B22222">/*E</font>
<a name="line634">634: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> - reason a Krylov method was determined to have converged or diverged</font>
<a name="line636">636: </a><font color="#B22222"> Values:</font>
<a name="line637">637: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL</a>` - requested decrease in the residual for the normal equations</font>
<a name="line638">638: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL</a>` - requested absolute value in the residual for the normal equations</font>
<a name="line639">639: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>` - requested decrease in the residual</font>
<a name="line640">640: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>` - requested absolute value in the residual</font>
<a name="line641">641: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_CONVERGED_ITS.html">KSP_CONVERGED_ITS</a>` - requested number of iterations</font>
<a name="line642">642: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a>` - see note below</font>
<a name="line643">643: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a>` - see note below</font>
<a name="line644">644: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_HAPPY_BREAKDOWN</a>` - happy breakdown (meaning early convergence of the `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` occurred).</font>
<a name="line645">645: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NULL</a>` - breakdown when solving the Hessenberg system within GMRES</font>
<a name="line646">646: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_ITS.html">KSP_DIVERGED_ITS</a>` - requested number of iterations</font>
<a name="line647">647: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a>` - large increase in the residual norm</font>
<a name="line648">648: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN.html">KSP_DIVERGED_BREAKDOWN</a>` - breakdown in the Krylov method</font>
<a name="line649">649: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN_BICG.html">KSP_DIVERGED_BREAKDOWN_BICG</a>` - breakdown in the `<a href="../manualpages/KSP/KSPBCGS.html">KSPBCGS</a>` Krylov method</font>
<a name="line650">650: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_NONSYMMETRIC.html">KSP_DIVERGED_NONSYMMETRIC</a>` - the operator or preonditioner was not symmetric for a `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` that requires symmetry</font>
<a name="line651">651: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_INDEFINITE_PC.html">KSP_DIVERGED_INDEFINITE_PC</a>` - the preconditioner was indefinite for a `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` that requires it be definite</font>
<a name="line652">652: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NANORINF</a>` - a not a number of infinity was detected in a vector during the computation</font>
<a name="line653">653: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_INDEFINITE_MAT</a>` - the operator was indefinite for a `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` that requires it be definite</font>
<a name="line654">654: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a>` - the action of the preconditioner failed for some reason</font>
<a name="line656">656: </a><font color="#B22222"> Level: beginner</font>
<a name="line658">658: </a><font color="#B22222"> Note:</font>
<a name="line659">659: </a><font color="#B22222"> The values `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a>`, and `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a>` are returned only by `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPMINRES.html">KSPMINRES</a>` and by</font>
<a name="line660">660: </a><font color="#B22222"> the special `<a href="../manualpages/KSP/KSPNASH.html">KSPNASH</a>`, `<a href="../manualpages/KSP/KSPSTCG.html">KSPSTCG</a>`, and `<a href="../manualpages/KSP/KSPGLTR.html">KSPGLTR</a>` solvers which are used by the `<a href="../manualpages/SNES/SNESNEWTONTR.html">SNESNEWTONTR</a>` (trust region) solver.</font>
<a name="line662">662: </a><font color="#B22222"> Developer Note:</font>
<a name="line663">663: </a><font color="#B22222"> The string versions of these are `KSPConvergedReasons`; if you change</font>
<a name="line664">664: </a><font color="#B22222"> any of the values here also change them that array of names.</font>
<a name="line666">666: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`, `<a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>()`</font>
<a name="line667">667: </a><font color="#B22222">E*/</font>
<a name="line668">668: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> { <font color="#B22222">/* converged */</font>
<a name="line669">669: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL</a> = 1,
<a name="line670">670: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL</a> = 9,
<a name="line671">671: </a> <a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a> = 2,
<a name="line672">672: </a> <a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a> = 3,
<a name="line673">673: </a> <a href="../manualpages/KSP/KSP_CONVERGED_ITS.html">KSP_CONVERGED_ITS</a> = 4,
<a name="line674">674: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a> = 5,
<a name="line675">675: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_NEG_CURVE_DEPRECATED</a> = 5,
<a name="line676">676: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_CONSTRAINED_DEPRECATED</a> = 6,
<a name="line677">677: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a> = 6,
<a name="line678">678: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_HAPPY_BREAKDOWN</a> = 7,
<a name="line679">679: </a> <font color="#B22222">/* diverged */</font>
<a name="line680">680: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NULL</a> = -2,
<a name="line681">681: </a> <a href="../manualpages/KSP/KSP_DIVERGED_ITS.html">KSP_DIVERGED_ITS</a> = -3,
<a name="line682">682: </a> <a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a> = -4,
<a name="line683">683: </a> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN.html">KSP_DIVERGED_BREAKDOWN</a> = -5,
<a name="line684">684: </a> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN_BICG.html">KSP_DIVERGED_BREAKDOWN_BICG</a> = -6,
<a name="line685">685: </a> <a href="../manualpages/KSP/KSP_DIVERGED_NONSYMMETRIC.html">KSP_DIVERGED_NONSYMMETRIC</a> = -7,
<a name="line686">686: </a> <a href="../manualpages/KSP/KSP_DIVERGED_INDEFINITE_PC.html">KSP_DIVERGED_INDEFINITE_PC</a> = -8,
<a name="line687">687: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NANORINF</a> = -9,
<a name="line688">688: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_INDEFINITE_MAT</a> = -10,
<a name="line689">689: </a> <a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a> = -11,
<a name="line690">690: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED</a> = -11,
<a name="line692">692: </a> <a href="../manualpages/KSP/KSP_CONVERGED_ITERATING.html">KSP_CONVERGED_ITERATING</a> = 0
<a name="line693">693: </a>} <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>;
<a name="line694">694: </a>PETSC_EXTERN const char *const *KSPConvergedReasons;
<a name="line696">696: </a><font color="#B22222">/*MC</font>
<a name="line697">697: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a> - $||r|| \le rtol*||b||$ or $rtol*||b - A*x_0||$ if `<a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>()` was called</font>
<a name="line699">699: </a><font color="#B22222"> Level: beginner</font>
<a name="line701">701: </a><font color="#B22222"> Notes:</font>
<a name="line702">702: </a><font color="#B22222"> See `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>` and `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()` for possible norms that may be used. By default</font>
<a name="line703">703: </a><font color="#B22222"> for left preconditioning it is the 2-norm of the preconditioned residual, and the</font>
<a name="line704">704: </a><font color="#B22222"> 2-norm of the residual for right preconditioning</font>
<a name="line706">706: </a><font color="#B22222"> See also `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>` which may apply before this tolerance.</font>
<a name="line708">708: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>`, `<a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line709">709: </a><font color="#B22222">M*/</font>
<a name="line711">711: </a><font color="#B22222">/*MC</font>
<a name="line712">712: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a> - $||r|| \le atol$</font>
<a name="line714">714: </a><font color="#B22222"> Level: beginner</font>
<a name="line716">716: </a><font color="#B22222"> Notes:</font>
<a name="line717">717: </a><font color="#B22222"> See `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>` and `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()` for possible norms that may be used. By default</font>
<a name="line718">718: </a><font color="#B22222"> for left preconditioning it is the 2-norm of the preconditioned residual, and the</font>
<a name="line719">719: </a><font color="#B22222"> 2-norm of the residual for right preconditioning</font>
<a name="line721">721: </a><font color="#B22222"> See also `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>` which may apply before this tolerance.</font>
<a name="line723">723: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>`, `<a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line724">724: </a><font color="#B22222">M*/</font>
<a name="line726">726: </a><font color="#B22222">/*MC</font>
<a name="line727">727: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a> - $||r|| \ge dtol*||b||$</font>
<a name="line729">729: </a><font color="#B22222"> Level: beginner</font>
<a name="line731">731: </a><font color="#B22222"> Note:</font>
<a name="line732">732: </a><font color="#B22222"> See `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>` and `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()` for possible norms that may be used. By default</font>
<a name="line733">733: </a><font color="#B22222"> for left preconditioning it is the 2-norm of the preconditioned residual, and the</font>
<a name="line734">734: </a><font color="#B22222"> 2-norm of the residual for right preconditioning</font>
<a name="line736">736: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line737">737: </a><font color="#B22222">M*/</font>
<a name="line739">739: </a><font color="#B22222">/*MC</font>
<a name="line740">740: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_ITS.html">KSP_DIVERGED_ITS</a> - Ran out of iterations before any convergence criteria was</font>
<a name="line741">741: </a><font color="#B22222"> reached</font>
<a name="line743">743: </a><font color="#B22222"> Level: beginner</font>
<a name="line745">745: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line746">746: </a><font color="#B22222">M*/</font>
<a name="line748">748: </a><font color="#B22222">/*MC</font>
<a name="line749">749: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_ITS.html">KSP_CONVERGED_ITS</a> - Used by the `<a href="../manualpages/KSP/KSPPREONLY.html">KSPPREONLY</a>` solver after the single iteration of</font>
<a name="line750">750: </a><font color="#B22222"> the preconditioner is applied. Also used when the `<a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>()` convergence</font>
<a name="line751">751: </a><font color="#B22222"> test routine is set in `<a href="../manualpages/KSP/KSP.html">KSP</a>`.</font>
<a name="line753">753: </a><font color="#B22222"> Level: beginner</font>
<a name="line755">755: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line756">756: </a><font color="#B22222">M*/</font>
<a name="line758">758: </a><font color="#B22222">/*MC</font>
<a name="line759">759: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN.html">KSP_DIVERGED_BREAKDOWN</a> - A breakdown in the Krylov method was detected so the</font>
<a name="line760">760: </a><font color="#B22222"> method could not continue to enlarge the Krylov space. Could be due to a singular matrix or</font>
<a name="line761">761: </a><font color="#B22222"> preconditioner. In `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`, this is also returned when some search directions within a block</font>
<a name="line762">762: </a><font color="#B22222"> are colinear.</font>
<a name="line764">764: </a><font color="#B22222"> Level: beginner</font>
<a name="line766">766: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line767">767: </a><font color="#B22222">M*/</font>
<a name="line769">769: </a><font color="#B22222">/*MC</font>
<a name="line770">770: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN_BICG.html">KSP_DIVERGED_BREAKDOWN_BICG</a> - A breakdown in the `<a href="../manualpages/KSP/KSPBICG.html">KSPBICG</a>` method was detected so the</font>
<a name="line771">771: </a><font color="#B22222"> method could not continue to enlarge the Krylov space.</font>
<a name="line773">773: </a><font color="#B22222"> Level: beginner</font>
<a name="line775">775: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line776">776: </a><font color="#B22222">M*/</font>
<a name="line778">778: </a><font color="#B22222">/*MC</font>
<a name="line779">779: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_NONSYMMETRIC.html">KSP_DIVERGED_NONSYMMETRIC</a> - It appears the operator or preconditioner is not</font>
<a name="line780">780: </a><font color="#B22222"> symmetric and this Krylov method (`<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPMINRES.html">KSPMINRES</a>`, `<a href="../manualpages/KSP/KSPCR.html">KSPCR</a>`) requires symmetry</font>
<a name="line782">782: </a><font color="#B22222"> Level: beginner</font>
<a name="line784">784: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line785">785: </a><font color="#B22222">M*/</font>
<a name="line787">787: </a><font color="#B22222">/*MC</font>
<a name="line788">788: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_INDEFINITE_PC.html">KSP_DIVERGED_INDEFINITE_PC</a> - It appears the preconditioner is indefinite (has both</font>
<a name="line789">789: </a><font color="#B22222"> positive and negative eigenvalues) and this Krylov method (`<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`) requires it to</font>
<a name="line790">790: </a><font color="#B22222"> be symmetric positive definite (SPD).</font>
<a name="line792">792: </a><font color="#B22222"> Level: beginner</font>
<a name="line794">794: </a><font color="#B22222"> Note:</font>
<a name="line795">795: </a><font color="#B22222"> This can happen with the `<a href="../manualpages/PC/PCICC.html">PCICC</a>` preconditioner, use the options database option `-pc_factor_shift_positive_definite` to force</font>
<a name="line796">796: </a><font color="#B22222"> the `<a href="../manualpages/PC/PCICC.html">PCICC</a>` preconditioner to generate a positive definite preconditioner</font>
<a name="line798">798: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line799">799: </a><font color="#B22222">M*/</font>
<a name="line801">801: </a><font color="#B22222">/*MC</font>
<a name="line802">802: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a> - It was not possible to build or use the requested preconditioner. This is usually due to a</font>
<a name="line803">803: </a><font color="#B22222"> zero pivot in a factorization. It can also result from a failure in a subpreconditioner inside a nested preconditioner</font>
<a name="line804">804: </a><font color="#B22222"> such as `<a href="../manualpages/PC/PCFIELDSPLIT.html">PCFIELDSPLIT</a>`.</font>
<a name="line806">806: </a><font color="#B22222"> Level: beginner</font>
<a name="line808">808: </a><font color="#B22222"> Note:</font>
<a name="line809">809: </a><font color="#B22222"> Run with `-ksp_error_if_not_converged` to stop the program when the error is detected and print an error message with details.</font>
<a name="line811">811: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line812">812: </a><font color="#B22222">M*/</font>
<a name="line814">814: </a><font color="#B22222">/*MC</font>
<a name="line815">815: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_ITERATING.html">KSP_CONVERGED_ITERATING</a> - This flag is returned if `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()` is called</font>
<a name="line816">816: </a><font color="#B22222"> while `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()` is still running.</font>
<a name="line818">818: </a><font color="#B22222"> Level: beginner</font>
<a name="line820">820: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line821">821: </a><font color="#B22222">M*/</font>
<a name="line823">823: </a><strong><font color="#4169E1"><a name="KSPSetConvergenceTest"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *), void *, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(void *)</font></strong>);
<a name="line824">824: </a><strong><font color="#4169E1"><a name="KSPGetConvergenceTest"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergenceTest.html">KSPGetConvergenceTest</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *), void **, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(void *)</font></strong>);
<a name="line825">825: </a><strong><font color="#4169E1"><a name="KSPGetAndClearConvergenceTest"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetAndClearConvergenceTest.html">KSPGetAndClearConvergenceTest</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *), void **, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(void *)</font></strong>);
<a name="line826">826: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergenceContext.html">KSPGetConvergenceContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line827">827: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefault.html">KSPConvergedDefault</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *)</font></strong>;
<a name="line828">828: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRConvergedDefault.html">KSPLSQRConvergedDefault</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *)</font></strong>;
<a name="line829">829: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultDestroy.html">KSPConvergedDefaultDestroy</a>(void *)</font></strong>;
<a name="line830">830: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultCreate.html">KSPConvergedDefaultCreate</a>(void **)</font></strong>;
<a name="line831">831: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line832">832: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultSetUMIRNorm.html">KSPConvergedDefaultSetUMIRNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line833">833: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultSetConvergedMaxits.html">KSPConvergedDefaultSetConvergedMaxits</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line834">834: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *)</font></strong>;
<a name="line835">835: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *)</font></strong>;
<a name="line836">836: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergedReasonString.html">KSPGetConvergedReasonString</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char **)</font></strong>;
<a name="line837">837: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeConvergenceRate.html">KSPComputeConvergenceRate</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line838">838: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetConvergedNegativeCurvature.html">KSPSetConvergedNegativeCurvature</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line839">839: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergedNegativeCurvature.html">KSPGetConvergedNegativeCurvature</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line841">841: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefault.html">KSPConvergedDefault</a>()"</font>, ) static inline void KSPDefaultConverged(void)
<a name="line842">842: </a>{ <font color="#B22222">/* never called */</font>
<a name="line843">843: </a>}
<a name="line844">844: </a><strong><font color="#228B22">#define KSPDefaultConverged (KSPDefaultConverged, <a href="../manualpages/KSP/KSPConvergedDefault.html">KSPConvergedDefault</a>)</font></strong>
<a name="line845">845: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultDestroy.html">KSPConvergedDefaultDestroy</a>()"</font>, ) static inline void KSPDefaultConvergedDestroy(void)
<a name="line846">846: </a>{ <font color="#B22222">/* never called */</font>
<a name="line847">847: </a>}
<a name="line848">848: </a><strong><font color="#228B22">#define KSPDefaultConvergedDestroy (KSPDefaultConvergedDestroy, <a href="../manualpages/KSP/KSPConvergedDefaultDestroy.html">KSPConvergedDefaultDestroy</a>)</font></strong>
<a name="line849">849: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultCreate.html">KSPConvergedDefaultCreate</a>()"</font>, ) static inline void KSPDefaultConvergedCreate(void)
<a name="line850">850: </a>{ <font color="#B22222">/* never called */</font>
<a name="line851">851: </a>}
<a name="line852">852: </a><strong><font color="#228B22">#define KSPDefaultConvergedCreate (KSPDefaultConvergedCreate, <a href="../manualpages/KSP/KSPConvergedDefaultCreate.html">KSPConvergedDefaultCreate</a>)</font></strong>
<a name="line853">853: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>()"</font>, ) static inline void KSPDefaultConvergedSetUIRNorm(void)
<a name="line854">854: </a>{ <font color="#B22222">/* never called */</font>
<a name="line855">855: </a>}
<a name="line856">856: </a><strong><font color="#228B22">#define KSPDefaultConvergedSetUIRNorm (KSPDefaultConvergedSetUIRNorm, <a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>)</font></strong>
<a name="line857">857: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultSetUMIRNorm.html">KSPConvergedDefaultSetUMIRNorm</a>()"</font>, ) static inline void KSPDefaultConvergedSetUMIRNorm(void)
<a name="line858">858: </a>{ <font color="#B22222">/* never called */</font>
<a name="line859">859: </a>}
<a name="line860">860: </a><strong><font color="#228B22">#define KSPDefaultConvergedSetUMIRNorm (KSPDefaultConvergedSetUMIRNorm, <a href="../manualpages/KSP/KSPConvergedDefaultSetUMIRNorm.html">KSPConvergedDefaultSetUMIRNorm</a>)</font></strong>
<a name="line861">861: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>()"</font>, ) static inline void KSPSkipConverged(void)
<a name="line862">862: </a>{ <font color="#B22222">/* never called */</font>
<a name="line863">863: </a>}
<a name="line864">864: </a><strong><font color="#228B22">#define KSPSkipConverged (KSPSkipConverged, <a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>)</font></strong>
<a name="line866">866: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeOperator.html">KSPComputeOperator</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/MatType.html">MatType</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line867">867: </a>PETSC_DEPRECATED_FUNCTION(3, 12, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPComputeOperator.html">KSPComputeOperator</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPComputeExplicitOperator(<a href="../manualpages/KSP/KSP.html">KSP</a> A, <a href="../manualpages/Mat/Mat.html">Mat</a> *B)
<a name="line868">868: </a>{
<a name="line869">869: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPComputeOperator.html">KSPComputeOperator</a>(A, <a href="../manualpages/Sys/PETSC_NULLPTR.html">PETSC_NULLPTR</a>, B);
<a name="line870">870: </a>}
<a name="line872">872: </a><font color="#B22222">/*E</font>
<a name="line873">873: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPCGType.html">KSPCGType</a> - Determines what type of `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>` to use</font>
<a name="line875">875: </a><font color="#B22222"> Values:</font>
<a name="line876">876: </a><font color="#B22222"> + `<a href="../manualpages/KSP/KSPCGType.html">KSP_CG_SYMMETRIC</a>` - the matrix is complex symmetric</font>
<a name="line877">877: </a><font color="#B22222"> - `<a href="../manualpages/KSP/KSPCGType.html">KSP_CG_HERMITIAN</a>` - the matrix is complex Hermitian</font>
<a name="line879">879: </a><font color="#B22222"> Level: beginner</font>
<a name="line881">881: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPCGSetType.html">KSPCGSetType</a>()`</font>
<a name="line882">882: </a><font color="#B22222">E*/</font>
<a name="line883">883: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line884">884: </a> <a href="../manualpages/KSP/KSPCGType.html">KSP_CG_SYMMETRIC</a> = 0,
<a name="line885">885: </a> <a href="../manualpages/KSP/KSPCGType.html">KSP_CG_HERMITIAN</a> = 1
<a name="line886">886: </a>} <a href="../manualpages/KSP/KSPCGType.html">KSPCGType</a>;
<a name="line887">887: </a>PETSC_EXTERN const char *const KSPCGTypes[];
<a name="line889">889: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGSetType.html">KSPCGSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPCGType.html">KSPCGType</a>)</font></strong>;
<a name="line890">890: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGUseSingleReduction.html">KSPCGUseSingleReduction</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line892">892: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGSetRadius.html">KSPCGSetRadius</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line893">893: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGSetObjectiveTarget.html">KSPCGSetObjectiveTarget</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line894">894: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGGetNormD.html">KSPCGGetNormD</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line895">895: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGGetObjFcn.html">KSPCGGetObjFcn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line897">897: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGLTRGetMinEig.html">KSPGLTRGetMinEig</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line898">898: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGLTRGetLambda.html">KSPGLTRGetLambda</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line899">899: </a>PETSC_DEPRECATED_FUNCTION(3, 12, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPGLTRGetMinEig.html">KSPGLTRGetMinEig</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPCGGLTRGetMinEig(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *x)
<a name="line900">900: </a>{
<a name="line901">901: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPGLTRGetMinEig.html">KSPGLTRGetMinEig</a>(ksp, x);
<a name="line902">902: </a>}
<a name="line903">903: </a>PETSC_DEPRECATED_FUNCTION(3, 12, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPGLTRGetLambda.html">KSPGLTRGetLambda</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPCGGLTRGetLambda(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *x)
<a name="line904">904: </a>{
<a name="line905">905: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPGLTRGetLambda.html">KSPGLTRGetLambda</a>(ksp, x);
<a name="line906">906: </a>}
<a name="line908">908: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPythonSetType.html">KSPPythonSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[])</font></strong>;
<a name="line909">909: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPythonGetType.html">KSPPythonGetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char *[])</font></strong>;
<a name="line911">911: </a><strong><font color="#4169E1"><a name="PCSetPreSolve"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCSetPreSolve.html">PCSetPreSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>);
<a name="line912">912: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCPreSolve.html">PCPreSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line913">913: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCPostSolve.html">PCPostSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line915">915: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorLGRange(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line917">917: </a><strong><font color="#4169E1"><a name="PCShellSetPreSolve"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCShellSetPreSolve.html">PCShellSetPreSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>);
<a name="line918">918: </a><strong><font color="#4169E1"><a name="PCShellSetPostSolve"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCShellSetPostSolve.html">PCShellSetPostSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>);
<a name="line920">920: </a><font color="#B22222">/*S</font>
<a name="line921">921: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> - Abstract PETSc object that manages all initial guess generation methods for Krylov methods.</font>
<a name="line923">923: </a><font color="#B22222"> Level: intermediate</font>
<a name="line925">925: </a><font color="#B22222"> Note:</font>
<a name="line926">926: </a><font color="#B22222"> These methods generate initial guesses based on a series of previous, related, linear solves. For example,</font>
<a name="line927">927: </a><font color="#B22222"> in implicit time-stepping with `<a href="../manualpages/TS/TS.html">TS</a>`.</font>
<a name="line929">929: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`, `<a href="../manualpages/KSP/KSPGuessSetType.html">KSPGuessSetType</a>()`, `<a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a>`</font>
<a name="line930">930: </a><font color="#B22222">S*/</font>
<a name="line931">931: </a><font color="#4169E1">typedef struct _p_KSPGuess *<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>;</font>
<a name="line933">933: </a><font color="#B22222">/*J</font>
<a name="line934">934: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a> - String with the name of a PETSc initial guess approach for Krylov methods.</font>
<a name="line936">936: </a><font color="#B22222"> Values:</font>
<a name="line937">937: </a><font color="#B22222"> + `<a href="../manualpages/KSP/KSPGUESSFISCHER.html">KSPGUESSFISCHER</a>` - methodology developed by Paul Fischer</font>
<a name="line938">938: </a><font color="#B22222"> - `<a href="../manualpages/KSP/KSPGUESSPOD.html">KSPGUESSPOD</a>` - methodology based on proper orthogonal decomposition (POD)</font>
<a name="line940">940: </a><font color="#B22222"> Level: intermediate</font>
<a name="line942">942: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>`</font>
<a name="line943">943: </a><font color="#B22222">J*/</font>
<a name="line944">944: </a><font color="#4169E1">typedef const char *<a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a>;</font>
<a name="line945">945: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGUESSFISCHER.html">KSPGUESSFISCHER</a> </font><font color="#666666">"fischer"</font><font color="#228B22"></font></strong>
<a name="line946">946: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGUESSPOD.html">KSPGUESSPOD</a> </font><font color="#666666">"pod"</font><font color="#228B22"></font></strong>
<a name="line948">948: </a><strong><font color="#4169E1"><a name="KSPGuessRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessRegister.html">KSPGuessRegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>);
<a name="line949">949: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetGuess.html">KSPSetGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>;
<a name="line950">950: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetGuess.html">KSPGetGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> *)</font></strong>;
<a name="line951">951: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessView.html">KSPGuessView</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line952">952: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessDestroy.html">KSPGuessDestroy</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> *)</font></strong>;
<a name="line953">953: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessCreate.html">KSPGuessCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> *)</font></strong>;
<a name="line954">954: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetType.html">KSPGuessSetType</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a>)</font></strong>;
<a name="line955">955: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessGetType.html">KSPGuessGetType</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a> *)</font></strong>;
<a name="line956">956: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetTolerance.html">KSPGuessSetTolerance</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line957">957: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetUp.html">KSPGuessSetUp</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>;
<a name="line958">958: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessUpdate.html">KSPGuessUpdate</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line959">959: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessFormGuess.html">KSPGuessFormGuess</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line960">960: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetFromOptions.html">KSPGuessSetFromOptions</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>;
<a name="line961">961: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessFischerSetModel.html">KSPGuessFischerSetModel</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line962">962: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUseFischerGuess.html">KSPSetUseFischerGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line963">963: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetInitialGuessKnoll.html">KSPSetInitialGuessKnoll</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line964">964: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetInitialGuessKnoll.html">KSPGetInitialGuessKnoll</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line966">966: </a><font color="#B22222">/*E</font>
<a name="line967">967: </a><font color="#B22222"> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a> - Determines how to approximate the inverse of the (0,0) block in Schur complement preconditioning matrix assembly routines</font>
<a name="line969">969: </a><font color="#B22222"> Level: intermediate</font>
<a name="line971">971: </a><font color="#B22222">.seealso: `<a href="../manualpages/KSP/MatSchurComplementGetAinvType.html">MatSchurComplementGetAinvType</a>()`, `<a href="../manualpages/KSP/MatSchurComplementSetAinvType.html">MatSchurComplementSetAinvType</a>()`, `<a href="../manualpages/KSP/MatSchurComplementGetPmat.html">MatSchurComplementGetPmat</a>()`, `<a href="../manualpages/KSP/MatGetSchurComplement.html">MatGetSchurComplement</a>()`,</font>
<a name="line972">972: </a><font color="#B22222"> `<a href="../manualpages/KSP/MatCreateSchurComplementPmat.html">MatCreateSchurComplementPmat</a>()`, `<a href="../manualpages/KSP/MatCreateSchurComplement.html">MatCreateSchurComplement</a>()`</font>
<a name="line973">973: </a><font color="#B22222">E*/</font>
<a name="line974">974: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line975">975: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_DIAG</a>,
<a name="line976">976: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_LUMP</a>,
<a name="line977">977: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_BLOCK_DIAG</a>,
<a name="line978">978: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_FULL</a>
<a name="line979">979: </a>} <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>;
<a name="line980">980: </a>PETSC_EXTERN const char *const MatSchurComplementAinvTypes[];
<a name="line982">982: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateSchurComplement.html">MatCreateSchurComplement</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line983">983: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetKSP.html">MatSchurComplementGetKSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line984">984: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementSetKSP.html">MatSchurComplementSetKSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line985">985: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementSetSubMatrices.html">MatSchurComplementSetSubMatrices</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line986">986: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementUpdateSubMatrices.html">MatSchurComplementUpdateSubMatrices</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line987">987: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetSubMatrices.html">MatSchurComplementGetSubMatrices</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line988">988: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementSetAinvType.html">MatSchurComplementSetAinvType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>)</font></strong>;
<a name="line989">989: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetAinvType.html">MatSchurComplementGetAinvType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a> *)</font></strong>;
<a name="line990">990: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetPmat.html">MatSchurComplementGetPmat</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line991">991: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementComputeExplicitOperator.html">MatSchurComplementComputeExplicitOperator</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line992">992: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatGetSchurComplement.html">MatGetSchurComplement</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line993">993: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateSchurComplementPmat.html">MatCreateSchurComplementPmat</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line995">995: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDFP.html">MatCreateLMVMDFP</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line996">996: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMBFGS.html">MatCreateLMVMBFGS</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line997">997: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDBFGS.html">MatCreateLMVMDBFGS</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line998">998: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDDFP.html">MatCreateLMVMDDFP</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line999">999: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDQN.html">MatCreateLMVMDQN</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1000">1000: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMSR1.html">MatCreateLMVMSR1</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1001">1001: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMBroyden.html">MatCreateLMVMBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1002">1002: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMBadBroyden.html">MatCreateLMVMBadBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1003">1003: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMSymBroyden.html">MatCreateLMVMSymBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1004">1004: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMSymBadBroyden.html">MatCreateLMVMSymBadBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1005">1005: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDiagBroyden.html">MatCreateLMVMDiagBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1007">1007: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMUpdate.html">MatLMVMUpdate</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1008">1008: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMIsAllocated.html">MatLMVMIsAllocated</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line1009">1009: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMAllocate.html">MatLMVMAllocate</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1010">1010: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMReset.html">MatLMVMReset</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line1011">1011: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMResetShift.html">MatLMVMResetShift</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1012">1012: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMClearJ0.html">MatLMVMClearJ0</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1013">1013: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0.html">MatLMVMSetJ0</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1014">1014: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0Scale.html">MatLMVMSetJ0Scale</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1015">1015: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0Diag.html">MatLMVMSetJ0Diag</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1016">1016: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0PC.html">MatLMVMSetJ0PC</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/PC/PC.html">PC</a>)</font></strong>;
<a name="line1017">1017: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0KSP.html">MatLMVMSetJ0KSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1018">1018: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMApplyJ0Fwd.html">MatLMVMApplyJ0Fwd</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1019">1019: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMApplyJ0Inv.html">MatLMVMApplyJ0Inv</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1020">1020: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetJ0.html">MatLMVMGetJ0</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1021">1021: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetJ0PC.html">MatLMVMGetJ0PC</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/PC/PC.html">PC</a> *)</font></strong>;
<a name="line1022">1022: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetJ0KSP.html">MatLMVMGetJ0KSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line1023">1023: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetHistorySize.html">MatLMVMSetHistorySize</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line1024">1024: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> MatLMVMGetHistorySize(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line1025">1025: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetUpdateCount.html">MatLMVMGetUpdateCount</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line1026">1026: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetRejectCount.html">MatLMVMGetRejectCount</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line1027">1027: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBroydenSetDelta.html">MatLMVMSymBroydenSetDelta</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>)</font></strong>;
<a name="line1029">1029: </a><font color="#B22222">/*E</font>
<a name="line1030">1030: </a><font color="#B22222"> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MatLMVMSymBroydenScaleType</a> - Scaling type for symmetric Broyden.</font>
<a name="line1032">1032: </a><font color="#B22222"> Values:</font>
<a name="line1033">1033: </a><font color="#B22222">+ `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_NONE</a>` - No scaling</font>
<a name="line1034">1034: </a><font color="#B22222">. `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_SCALAR</a>` - scalar scaling</font>
<a name="line1035">1035: </a><font color="#B22222">. `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_DIAGONAL</a>` - diagonal scaling</font>
<a name="line1036">1036: </a><font color="#B22222">- `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_USER</a>` - user-provided scale option</font>
<a name="line1038">1038: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1040">1040: </a><font color="#B22222">.seealso: [](ch_matrices), `MatLMVM`, `<a href="../manualpages/KSP/MatLMVMSymBroydenSetScaleType.html">MatLMVMSymBroydenSetScaleType</a>()`</font>
<a name="line1041">1041: </a><font color="#B22222">E*/</font>
<a name="line1042">1042: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1043">1043: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_NONE</a> = 0,
<a name="line1044">1044: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_SCALAR</a> = 1,
<a name="line1045">1045: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_DIAGONAL</a> = 2,
<a name="line1046">1046: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_USER</a> = 3
<a name="line1047">1047: </a>} <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MatLMVMSymBroydenScaleType</a>;
<a name="line1048">1048: </a>PETSC_EXTERN const char *const MatLMVMSymBroydenScaleTypes[];
<a name="line1050">1050: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBroydenSetScaleType.html">MatLMVMSymBroydenSetScaleType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MatLMVMSymBroydenScaleType</a>)</font></strong>;
<a name="line1052">1052: </a><font color="#B22222">/*E</font>
<a name="line1053">1053: </a><font color="#B22222"> <a href="../manualpages/KSP/MatLMVMDenseType.html">MatLMVMDenseType</a> - Memory storage strategy for dense variants of `<a href="../manualpages/KSP/MATLMVM.html">MATLMVM</a>`.</font>
<a name="line1055">1055: </a><font color="#B22222"> Values:</font>
<a name="line1056">1056: </a><font color="#B22222">+ `<a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_REORDER</a>` - reorders memory to minimize kernel launch</font>
<a name="line1057">1057: </a><font color="#B22222">- `<a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_INPLACE</a>` - computes inplace to minimize memory movement</font>
<a name="line1059">1059: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1061">1061: </a><font color="#B22222">.seealso: [](ch_matrices), `MatLMVM`, `<a href="../manualpages/KSP/MatLMVMDenseSetType.html">MatLMVMDenseSetType</a>()`</font>
<a name="line1062">1062: </a><font color="#B22222">E*/</font>
<a name="line1063">1063: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1064">1064: </a> <a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_REORDER</a>,
<a name="line1065">1065: </a> <a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_INPLACE</a>
<a name="line1066">1066: </a>} <a href="../manualpages/KSP/MatLMVMDenseType.html">MatLMVMDenseType</a>;
<a name="line1067">1067: </a>PETSC_EXTERN const char *const MatLMVMDenseTypes[];
<a name="line1069">1069: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMDenseSetType.html">MatLMVMDenseSetType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatLMVMDenseType.html">MatLMVMDenseType</a>)</font></strong>;
<a name="line1071">1071: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDM.html">KSPSetDM</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/DM/DM.html">DM</a>)</font></strong>;
<a name="line1072">1072: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDMActive.html">KSPSetDMActive</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line1073">1073: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetDM.html">KSPGetDM</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/DM/DM.html">DM</a> *)</font></strong>;
<a name="line1074">1074: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetApplicationContext.html">KSPSetApplicationContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line1075">1075: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetApplicationContext.html">KSPGetApplicationContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line1077">1077: </a><font color="#B22222">/*S</font>
<a name="line1078">1078: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> - A prototype of a `<a href="../manualpages/KSP/KSP.html">KSP</a>` evaluation function that would be passed to `<a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>()`</font>
<a name="line1080">1080: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1081">1081: </a><font color="#B22222">+ ksp - `ksp` context</font>
<a name="line1082">1082: </a><font color="#B22222">. b - output vector</font>
<a name="line1083">1083: </a><font color="#B22222">- ctx - [optional] user-defined function context</font>
<a name="line1085">1085: </a><font color="#B22222"> Level: beginner</font>
<a name="line1087">1087: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>()`, `<a href="../manualpages/SNES/SNESGetFunction.html">SNESGetFunction</a>()`, `<a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a>`, `<a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>`</font>
<a name="line1088">1088: </a><font color="#B22222">S*/</font>
<a name="line1089">1089: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>(<a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a>)(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Vec/Vec.html">Vec</a> b, void *ctx)</font></strong>;
<a name="line1091">1091: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> *, void *)</font></strong>;
<a name="line1093">1093: </a><font color="#B22222">/*S</font>
<a name="line1094">1094: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a> - A prototype of a `<a href="../manualpages/KSP/KSP.html">KSP</a>` evaluation function that would be passed to `<a href="../manualpages/KSP/KSPSetComputeOperators.html">KSPSetComputeOperators</a>()`</font>
<a name="line1096">1096: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1097">1097: </a><font color="#B22222">+ ksp - `<a href="../manualpages/KSP/KSP.html">KSP</a>` context</font>
<a name="line1098">1098: </a><font color="#B22222">. A - the operator that defines the linear system</font>
<a name="line1099">1099: </a><font color="#B22222">. P - an operator from which to build the preconditioner (often the same as `A`)</font>
<a name="line1100">1100: </a><font color="#B22222">- ctx - [optional] user-defined function context</font>
<a name="line1102">1102: </a><font color="#B22222"> Level: beginner</font>
<a name="line1104">1104: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>()`, `<a href="../manualpages/SNES/SNESGetFunction.html">SNESGetFunction</a>()`, `<a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a>`, `<a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a>`</font>
<a name="line1105">1105: </a><font color="#B22222">S*/</font>
<a name="line1106">1106: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>(<a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>)(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> A, <a href="../manualpages/Mat/Mat.html">Mat</a> P, void *ctx)</font></strong>;
<a name="line1108">1108: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeOperators.html">KSPSetComputeOperators</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>, void *)</font></strong>;
<a name="line1110">1110: </a><font color="#B22222">/*S</font>
<a name="line1111">1111: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> - A prototype of a `<a href="../manualpages/KSP/KSP.html">KSP</a>` evaluation function that would be passed to `<a href="../manualpages/KSP/KSPSetComputeInitialGuess.html">KSPSetComputeInitialGuess</a>()`</font>
<a name="line1113">1113: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1114">1114: </a><font color="#B22222">+ ksp - `ksp` context</font>
<a name="line1115">1115: </a><font color="#B22222">. x - output vector</font>
<a name="line1116">1116: </a><font color="#B22222">- ctx - [optional] user-defined function context</font>
<a name="line1118">1118: </a><font color="#B22222"> Level: beginner</font>
<a name="line1120">1120: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetComputeInitialGuess.html">KSPSetComputeInitialGuess</a>()`, `<a href="../manualpages/SNES/SNESGetFunction.html">SNESGetFunction</a>()`, `<a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a>`, `<a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>`</font>
<a name="line1121">1121: </a><font color="#B22222">S*/</font>
<a name="line1122">1122: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a>(<a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a>)(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Vec/Vec.html">Vec</a> x, void *ctx)</font></strong>;
<a name="line1124">1124: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeInitialGuess.html">KSPSetComputeInitialGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> *, void *)</font></strong>;
<a name="line1125">1125: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPSetComputeOperators.html">DMKSPSetComputeOperators</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a> *, void *)</font></strong>;
<a name="line1126">1126: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPGetComputeOperators.html">DMKSPGetComputeOperators</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a> **, void *)</font></strong>;
<a name="line1127">1127: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPSetComputeRHS.html">DMKSPSetComputeRHS</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> *, void *)</font></strong>;
<a name="line1128">1128: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPGetComputeRHS.html">DMKSPGetComputeRHS</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> **, void *)</font></strong>;
<a name="line1129">1129: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPSetComputeInitialGuess.html">DMKSPSetComputeInitialGuess</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> *, void *)</font></strong>;
<a name="line1130">1130: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPGetComputeInitialGuess.html">DMKSPGetComputeInitialGuess</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> **, void *)</font></strong>;
<a name="line1132">1132: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMGlobalToLocalSolve.html">DMGlobalToLocalSolve</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1133">1133: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMProjectField.html">DMProjectField</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, void (**)(<a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[], <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>[]), <a href="../manualpages/Sys/InsertMode.html">InsertMode</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1134">1134: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMSwarmProjectFields.html">DMSwarmProjectFields</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const char **, <a href="../manualpages/Vec/Vec.html">Vec</a>[], <a href="../manualpages/Vec/ScatterMode.html">ScatterMode</a> mode)</font></strong>;
<a name="line1136">1136: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMAdaptInterpolator(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, void *)</font></strong>;
<a name="line1137">1137: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCheckInterpolator(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1139">1139: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCBJKOKKOSSetKSP.html">PCBJKOKKOSSetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1140">1140: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCBJKOKKOSGetKSP.html">PCBJKOKKOSGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line1142">1142: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMCopyDMKSP.html">DMCopyDMKSP</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>)</font></strong>;
</pre>
</body>
</html>
|