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
|
<center><a href="petscvec.h">Actual source code: petscvec.h</a></center><br>
<html>
<head> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/include/petscvec.h.html" />
<title></title>
<meta name="generator" content="c2html 0.9.4">
<meta name="date" content="2017-01-01T16:09:17+00:00">
</head>
<body bgcolor="#FFFFFF">
<div id="version" align=right><b>petsc-3.7.5 2017-01-01</b></div>
<div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.7.5 v3.7.5 include/petscvec.h.html "><small>Report Typos and Errors</small></a></div>
<pre width="80"><a name="line1"> 1: </a><font color="#B22222">/*</font>
<a name="line2"> 2: </a><font color="#B22222"> Defines the vector component of PETSc. Vectors generally represent</font>
<a name="line3"> 3: </a><font color="#B22222"> degrees of freedom for finite element/finite difference functions</font>
<a name="line4"> 4: </a><font color="#B22222"> on a grid. They have more mathematical structure then simple arrays.</font>
<a name="line5"> 5: </a><font color="#B22222">*/</font>
<a name="line7"> 7: </a><font color="#A020F0">#ifndef __PETSCVEC_H</font>
<a name="line9"> 9: </a><font color="#A020F0">#include <petscis.h></font>
<a name="line10"> 10: </a><font color="#A020F0">#include <petscviewer.h></font>
<a name="line12"> 12: </a><font color="#B22222">/*S</font>
<a name="line13"> 13: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> - Abstract PETSc vector object</font>
<a name="line15"> 15: </a><font color="#B22222"> Level: beginner</font>
<a name="line17"> 17: </a><font color="#B22222"> Concepts: field variables, unknowns, arrays</font>
<a name="line19"> 19: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecCreate.html#VecCreate">VecCreate</a>(), <a href="../docs/manualpages/Vec/VecType.html#VecType">VecType</a>, <a href="../docs/manualpages/Vec/VecSetType.html#VecSetType">VecSetType</a>()</font>
<a name="line20"> 20: </a><font color="#B22222">S*/</font>
<a name="line21"> 21: </a><font color="#4169E1">typedef struct _p_Vec* <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>;</font>
<a name="line23"> 23: </a><font color="#B22222">/*S</font>
<a name="line24"> 24: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a> - Object used to manage communication of data</font>
<a name="line25"> 25: </a><font color="#B22222"> between vectors in parallel. Manages both scatters and gathers</font>
<a name="line27"> 27: </a><font color="#B22222"> Level: beginner</font>
<a name="line29"> 29: </a><font color="#B22222"> Concepts: scatter</font>
<a name="line31"> 31: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>(), <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(), <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>()</font>
<a name="line32"> 32: </a><font color="#B22222">S*/</font>
<a name="line33"> 33: </a><font color="#4169E1">typedef struct _p_VecScatter* <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>;</font>
<a name="line35"> 35: </a><font color="#B22222">/*E</font>
<a name="line36"> 36: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a> - Determines the direction of a scatter</font>
<a name="line38"> 38: </a><font color="#B22222"> Level: beginner</font>
<a name="line40"> 40: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>, <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(), <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>()</font>
<a name="line41"> 41: </a><font color="#B22222">E*/</font>
<a name="line42"> 42: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {<a href="../docs/manualpages/Vec/SCATTER_FORWARD.html#SCATTER_FORWARD">SCATTER_FORWARD</a>=0, <a href="../docs/manualpages/Vec/SCATTER_REVERSE.html#SCATTER_REVERSE">SCATTER_REVERSE</a>=1, <a href="../docs/manualpages/Vec/SCATTER_FORWARD_LOCAL.html#SCATTER_FORWARD_LOCAL">SCATTER_FORWARD_LOCAL</a>=2, <a href="../docs/manualpages/Vec/SCATTER_REVERSE_LOCAL.html#SCATTER_REVERSE_LOCAL">SCATTER_REVERSE_LOCAL</a>=3, SCATTER_LOCAL=2} <a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>;
<a name="line44"> 44: </a><font color="#B22222">/*MC</font>
<a name="line45"> 45: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_FORWARD.html#SCATTER_FORWARD">SCATTER_FORWARD</a> - Scatters the values as dictated by the <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>() call</font>
<a name="line47"> 47: </a><font color="#B22222"> Level: beginner</font>
<a name="line49"> 49: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>, <a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>, <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>(), <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(), <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>(), <a href="../docs/manualpages/Vec/SCATTER_REVERSE.html#SCATTER_REVERSE">SCATTER_REVERSE</a>, <a href="../docs/manualpages/Vec/SCATTER_FORWARD_LOCAL.html#SCATTER_FORWARD_LOCAL">SCATTER_FORWARD_LOCAL</a>,</font>
<a name="line50"> 50: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_REVERSE_LOCAL.html#SCATTER_REVERSE_LOCAL">SCATTER_REVERSE_LOCAL</a></font>
<a name="line52"> 52: </a><font color="#B22222">M*/</font>
<a name="line54"> 54: </a><font color="#B22222">/*MC</font>
<a name="line55"> 55: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_REVERSE.html#SCATTER_REVERSE">SCATTER_REVERSE</a> - Moves the values in the opposite direction then the directions indicated in</font>
<a name="line56"> 56: </a><font color="#B22222"> in the <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>()</font>
<a name="line58"> 58: </a><font color="#B22222"> Level: beginner</font>
<a name="line60"> 60: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>, <a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>, <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>(), <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(), <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>(), <a href="../docs/manualpages/Vec/SCATTER_FORWARD.html#SCATTER_FORWARD">SCATTER_FORWARD</a>, <a href="../docs/manualpages/Vec/SCATTER_FORWARD_LOCAL.html#SCATTER_FORWARD_LOCAL">SCATTER_FORWARD_LOCAL</a>,</font>
<a name="line61"> 61: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_REVERSE_LOCAL.html#SCATTER_REVERSE_LOCAL">SCATTER_REVERSE_LOCAL</a></font>
<a name="line63"> 63: </a><font color="#B22222">M*/</font>
<a name="line65"> 65: </a><font color="#B22222">/*MC</font>
<a name="line66"> 66: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_FORWARD_LOCAL.html#SCATTER_FORWARD_LOCAL">SCATTER_FORWARD_LOCAL</a> - Scatters the values as dictated by the <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>() call except NO parallel communication</font>
<a name="line67"> 67: </a><font color="#B22222"> is done. Any variables that have be moved between processes are ignored</font>
<a name="line69"> 69: </a><font color="#B22222"> Level: developer</font>
<a name="line71"> 71: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>, <a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>, <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>(), <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(), <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>(), <a href="../docs/manualpages/Vec/SCATTER_REVERSE.html#SCATTER_REVERSE">SCATTER_REVERSE</a>, <a href="../docs/manualpages/Vec/SCATTER_FORWARD.html#SCATTER_FORWARD">SCATTER_FORWARD</a>,</font>
<a name="line72"> 72: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_REVERSE_LOCAL.html#SCATTER_REVERSE_LOCAL">SCATTER_REVERSE_LOCAL</a></font>
<a name="line74"> 74: </a><font color="#B22222">M*/</font>
<a name="line76"> 76: </a><font color="#B22222">/*MC</font>
<a name="line77"> 77: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_REVERSE_LOCAL.html#SCATTER_REVERSE_LOCAL">SCATTER_REVERSE_LOCAL</a> - Moves the values in the opposite direction then the directions indicated in</font>
<a name="line78"> 78: </a><font color="#B22222"> in the <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>() except NO parallel communication</font>
<a name="line79"> 79: </a><font color="#B22222"> is done. Any variables that have be moved between processes are ignored</font>
<a name="line81"> 81: </a><font color="#B22222"> Level: developer</font>
<a name="line83"> 83: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>, <a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>, <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>(), <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(), <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>(), <a href="../docs/manualpages/Vec/SCATTER_FORWARD.html#SCATTER_FORWARD">SCATTER_FORWARD</a>, <a href="../docs/manualpages/Vec/SCATTER_FORWARD_LOCAL.html#SCATTER_FORWARD_LOCAL">SCATTER_FORWARD_LOCAL</a>,</font>
<a name="line84"> 84: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/SCATTER_REVERSE.html#SCATTER_REVERSE">SCATTER_REVERSE</a></font>
<a name="line86"> 86: </a><font color="#B22222">M*/</font>
<a name="line88"> 88: </a><font color="#B22222">/*J</font>
<a name="line89"> 89: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/VecType.html#VecType">VecType</a> - String with the name of a PETSc vector</font>
<a name="line91"> 91: </a><font color="#B22222"> Level: beginner</font>
<a name="line93"> 93: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecSetType.html#VecSetType">VecSetType</a>(), <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/VecCreate.html#VecCreate">VecCreate</a>(), <a href="../docs/manualpages/Vec/VecDestroy.html#VecDestroy">VecDestroy</a>()</font>
<a name="line94"> 94: </a><font color="#B22222">J*/</font>
<a name="line95"> 95: </a><font color="#4169E1">typedef const char* <a href="../docs/manualpages/Vec/VecType.html#VecType">VecType</a>;</font>
<a name="line96"> 96: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECSEQ.html#VECSEQ">VECSEQ</a> </font><font color="#666666">"seq"</font><font color="#228B22"></font></strong>
<a name="line97"> 97: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECMPI.html#VECMPI">VECMPI</a> </font><font color="#666666">"mpi"</font><font color="#228B22"></font></strong>
<a name="line98"> 98: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECSTANDARD.html#VECSTANDARD">VECSTANDARD</a> </font><font color="#666666">"standard"</font><font color="#228B22"> </font><font color="#B22222">/* seq on one process and mpi on several */</font><font color="#228B22"></font></strong>
<a name="line99"> 99: </a><strong><font color="#228B22">#define VECSHARED </font><font color="#666666">"shared"</font><font color="#228B22"></font></strong>
<a name="line100">100: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECSEQCUSP.html#VECSEQCUSP">VECSEQCUSP</a> </font><font color="#666666">"seqcusp"</font><font color="#228B22"></font></strong>
<a name="line101">101: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECMPICUSP.html#VECMPICUSP">VECMPICUSP</a> </font><font color="#666666">"mpicusp"</font><font color="#228B22"></font></strong>
<a name="line102">102: </a><strong><font color="#228B22">#define VECCUSP </font><font color="#666666">"cusp"</font><font color="#228B22"> </font><font color="#B22222">/* seqcusp on one process and mpicusp on several */</font><font color="#228B22"></font></strong>
<a name="line103">103: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECSEQVIENNACL.html#VECSEQVIENNACL">VECSEQVIENNACL</a> </font><font color="#666666">"seqviennacl"</font><font color="#228B22"></font></strong>
<a name="line104">104: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECMPIVIENNACL.html#VECMPIVIENNACL">VECMPIVIENNACL</a> </font><font color="#666666">"mpiviennacl"</font><font color="#228B22"></font></strong>
<a name="line105">105: </a><strong><font color="#228B22">#define VECVIENNACL </font><font color="#666666">"viennacl"</font><font color="#228B22"> </font><font color="#B22222">/* seqviennacl on one process and mpiviennacl on several */</font><font color="#228B22"></font></strong>
<a name="line106">106: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECSEQCUDA.html#VECSEQCUDA">VECSEQCUDA</a> </font><font color="#666666">"seqcuda"</font><font color="#228B22"></font></strong>
<a name="line107">107: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECMPICUDA.html#VECMPICUDA">VECMPICUDA</a> </font><font color="#666666">"mpicuda"</font><font color="#228B22"></font></strong>
<a name="line108">108: </a><strong><font color="#228B22">#define VECCUDA </font><font color="#666666">"cuda"</font><font color="#228B22"> </font><font color="#B22222">/* seqcuda on one process and mpicuda on several */</font><font color="#228B22"></font></strong>
<a name="line109">109: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VECNEST.html#VECNEST">VECNEST</a> </font><font color="#666666">"nest"</font><font color="#228B22"></font></strong>
<a name="line112">112: </a><font color="#B22222">/* Logging support */</font>
<a name="line113">113: </a><strong><font color="#228B22">#define VEC_FILE_CLASSID 1211214</font></strong>
<a name="line114">114: </a>PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscClassId.html#PetscClassId">PetscClassId</a> VEC_CLASSID;
<a name="line115">115: </a>PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscClassId.html#PetscClassId">PetscClassId</a> VEC_SCATTER_CLASSID;
<a name="line118">118: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecInitializePackage.html#VecInitializePackage">VecInitializePackage</a>(void)</font></strong>;
<a name="line119">119: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecFinalizePackage.html#VecFinalizePackage">VecFinalizePackage</a>(void)</font></strong>;
<a name="line121">121: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreate.html#VecCreate">VecCreate</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line122">122: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateSeq.html#VecCreateSeq">VecCreateSeq</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line123">123: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateMPI.html#VecCreateMPI">VecCreateMPI</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line124">124: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateSeqWithArray.html#VecCreateSeqWithArray">VecCreateSeqWithArray</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line125">125: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateMPIWithArray.html#VecCreateMPIWithArray">VecCreateMPIWithArray</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line126">126: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateShared.html#VecCreateShared">VecCreateShared</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line127">127: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetFromOptions.html#VecSetFromOptions">VecSetFromOptions</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line128">128: </a><strong><font color="#4169E1"><a name="VecViewFromOptions"></a>PETSC_STATIC_INLINE <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecViewFromOptions(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> A,<a href="../docs/manualpages/Sys/PetscObject.html#PetscObject">PetscObject</a> B,const char name[])</font></strong> {<font color="#4169E1">return</font> <a href="../docs/manualpages/Sys/PetscObjectViewFromOptions.html#PetscObjectViewFromOptions">PetscObjectViewFromOptions</a>((<a href="../docs/manualpages/Sys/PetscObject.html#PetscObject">PetscObject</a>)A,B,name);}
<a name="line130">130: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetUp.html#VecSetUp">VecSetUp</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line131">131: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDestroy.html#VecDestroy">VecDestroy</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line132">132: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecZeroEntries.html#VecZeroEntries">VecZeroEntries</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line133">133: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetOptionsPrefix.html#VecSetOptionsPrefix">VecSetOptionsPrefix</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const char[])</font></strong>;
<a name="line134">134: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAppendOptionsPrefix.html#VecAppendOptionsPrefix">VecAppendOptionsPrefix</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const char[])</font></strong>;
<a name="line135">135: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetOptionsPrefix.html#VecGetOptionsPrefix">VecGetOptionsPrefix</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const char*[])</font></strong>;
<a name="line137">137: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetSizes.html#VecSetSizes">VecSetSizes</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>)</font></strong>;
<a name="line139">139: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDotNorm2.html#VecDotNorm2">VecDotNorm2</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>*,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line140">140: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDot.html#VecDot">VecDot</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>*)</font></strong>;
<a name="line141">141: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDotRealPart.html#VecDotRealPart">VecDotRealPart</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line142">142: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecTDot.html#VecTDot">VecTDot</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>*)</font></strong>;
<a name="line143">143: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMDot.html#VecMDot">VecMDot</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line144">144: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMTDot.html#VecMTDot">VecMTDot</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line145">145: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetSubVector.html#VecGetSubVector">VecGetSubVector</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line146">146: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreSubVector.html#VecRestoreSubVector">VecRestoreSubVector</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line148">148: </a><font color="#B22222">/*E</font>
<a name="line149">149: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a> - determines what type of norm to compute</font>
<a name="line151">151: </a><font color="#B22222"> Level: beginner</font>
<a name="line153">153: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(), <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(), <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(), <a href="../docs/manualpages/Mat/MatNorm.html#MatNorm">MatNorm</a>()</font>
<a name="line154">154: </a><font color="#B22222">E*/</font>
<a name="line155">155: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {<a href="../docs/manualpages/Vec/NORM_1.html#NORM_1">NORM_1</a>=0,<a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a>=1,<a href="../docs/manualpages/Vec/NORM_FROBENIUS.html#NORM_FROBENIUS">NORM_FROBENIUS</a>=2,<a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a>=3,<a href="../docs/manualpages/Vec/NORM_1_AND_2.html#NORM_1_AND_2">NORM_1_AND_2</a>=4} <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>;
<a name="line156">156: </a>PETSC_EXTERN const char *const NormTypes[];
<a name="line157">157: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/NORM_MAX.html#NORM_MAX">NORM_MAX</a> <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a></font></strong>
<a name="line159">159: </a><font color="#B22222">/*MC</font>
<a name="line160">160: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_1.html#NORM_1">NORM_1</a> - the one norm, ||v|| = sum_i | v_i |. ||A|| = max_j || v_*j ||, maximum column sum</font>
<a name="line162">162: </a><font color="#B22222"> Level: beginner</font>
<a name="line164">164: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>, <a href="../docs/manualpages/Mat/MatNorm.html#MatNorm">MatNorm</a>(), <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(), <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(), <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(), <a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a>, <a href="../docs/manualpages/Vec/NORM_FROBENIUS.html#NORM_FROBENIUS">NORM_FROBENIUS</a>,</font>
<a name="line165">165: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a>, <a href="../docs/manualpages/Vec/NORM_1_AND_2.html#NORM_1_AND_2">NORM_1_AND_2</a></font>
<a name="line167">167: </a><font color="#B22222">M*/</font>
<a name="line169">169: </a><font color="#B22222">/*MC</font>
<a name="line170">170: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a> - the two norm, ||v|| = sqrt(sum_i (v_i)^2) (vectors only)</font>
<a name="line172">172: </a><font color="#B22222"> Level: beginner</font>
<a name="line174">174: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>, <a href="../docs/manualpages/Mat/MatNorm.html#MatNorm">MatNorm</a>(), <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(), <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(), <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(), <a href="../docs/manualpages/Vec/NORM_1.html#NORM_1">NORM_1</a>, <a href="../docs/manualpages/Vec/NORM_FROBENIUS.html#NORM_FROBENIUS">NORM_FROBENIUS</a>,</font>
<a name="line175">175: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a>, <a href="../docs/manualpages/Vec/NORM_1_AND_2.html#NORM_1_AND_2">NORM_1_AND_2</a></font>
<a name="line177">177: </a><font color="#B22222">M*/</font>
<a name="line179">179: </a><font color="#B22222">/*MC</font>
<a name="line180">180: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_FROBENIUS.html#NORM_FROBENIUS">NORM_FROBENIUS</a> - ||A|| = sqrt(sum_ij (A_ij)^2), same as <a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a> for vectors</font>
<a name="line182">182: </a><font color="#B22222"> Level: beginner</font>
<a name="line184">184: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>, <a href="../docs/manualpages/Mat/MatNorm.html#MatNorm">MatNorm</a>(), <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(), <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(), <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(), <a href="../docs/manualpages/Vec/NORM_1.html#NORM_1">NORM_1</a>, <a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a>,</font>
<a name="line185">185: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a>, <a href="../docs/manualpages/Vec/NORM_1_AND_2.html#NORM_1_AND_2">NORM_1_AND_2</a></font>
<a name="line187">187: </a><font color="#B22222">M*/</font>
<a name="line189">189: </a><font color="#B22222">/*MC</font>
<a name="line190">190: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a> - ||v|| = max_i |v_i|. ||A|| = max_i || v_i* ||, maximum row sum</font>
<a name="line192">192: </a><font color="#B22222"> Level: beginner</font>
<a name="line194">194: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>, <a href="../docs/manualpages/Mat/MatNorm.html#MatNorm">MatNorm</a>(), <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(), <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(), <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(), <a href="../docs/manualpages/Vec/NORM_1.html#NORM_1">NORM_1</a>, <a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a>,</font>
<a name="line195">195: </a><font color="#B22222"> NORM_FROBINIUS, <a href="../docs/manualpages/Vec/NORM_1_AND_2.html#NORM_1_AND_2">NORM_1_AND_2</a></font>
<a name="line197">197: </a><font color="#B22222">M*/</font>
<a name="line199">199: </a><font color="#B22222">/*MC</font>
<a name="line200">200: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_1_AND_2.html#NORM_1_AND_2">NORM_1_AND_2</a> - computes both the 1 and 2 norm of a vector</font>
<a name="line202">202: </a><font color="#B22222"> Level: beginner</font>
<a name="line204">204: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>, <a href="../docs/manualpages/Mat/MatNorm.html#MatNorm">MatNorm</a>(), <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(), <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(), <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(), <a href="../docs/manualpages/Vec/NORM_1.html#NORM_1">NORM_1</a>, <a href="../docs/manualpages/Vec/NORM_2.html#NORM_2">NORM_2</a>,</font>
<a name="line205">205: </a><font color="#B22222"> NORM_FROBINIUS, <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a></font>
<a name="line207">207: </a><font color="#B22222">M*/</font>
<a name="line209">209: </a><font color="#B22222">/*MC</font>
<a name="line210">210: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/NORM_MAX.html#NORM_MAX">NORM_MAX</a> - see <a href="../docs/manualpages/Vec/NORM_INFINITY.html#NORM_INFINITY">NORM_INFINITY</a></font>
<a name="line212">212: </a><font color="#B22222"> Level: beginner</font>
<a name="line214">214: </a><font color="#B22222">M*/</font>
<a name="line216">216: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNorm.html#VecNorm">VecNorm</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line217">217: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNormAvailable.html#VecNormAvailable">VecNormAvailable</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a> *,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line218">218: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNormalize.html#VecNormalize">VecNormalize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line219">219: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSum.html#VecSum">VecSum</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>*)</font></strong>;
<a name="line220">220: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMax.html#VecMax">VecMax</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line221">221: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMin.html#VecMin">VecMin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line222">222: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScale.html#VecScale">VecScale</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line223">223: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCopy.html#VecCopy">VecCopy</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line224">224: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetRandom.html#VecSetRandom">VecSetRandom</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscRandom.html#PetscRandom">PetscRandom</a>)</font></strong>;
<a name="line225">225: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSet.html#VecSet">VecSet</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line226">226: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecSetInf(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line227">227: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSwap.html#VecSwap">VecSwap</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line228">228: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAXPY.html#VecAXPY">VecAXPY</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line229">229: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAXPBY.html#VecAXPBY">VecAXPBY</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line230">230: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMAXPY.html#VecMAXPY">VecMAXPY</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[])</font></strong>;
<a name="line231">231: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAYPX.html#VecAYPX">VecAYPX</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line232">232: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecWAXPY.html#VecWAXPY">VecWAXPY</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line233">233: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAXPBYPCZ.html#VecAXPBYPCZ">VecAXPBYPCZ</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line234">234: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPointwiseMax.html#VecPointwiseMax">VecPointwiseMax</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line235">235: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPointwiseMaxAbs.html#VecPointwiseMaxAbs">VecPointwiseMaxAbs</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line236">236: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPointwiseMin.html#VecPointwiseMin">VecPointwiseMin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line237">237: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPointwiseMult.html#VecPointwiseMult">VecPointwiseMult</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line238">238: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPointwiseDivide.html#VecPointwiseDivide">VecPointwiseDivide</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line239">239: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMaxPointwiseDivide.html#VecMaxPointwiseDivide">VecMaxPointwiseDivide</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line240">240: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecShift.html#VecShift">VecShift</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line241">241: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecReciprocal.html#VecReciprocal">VecReciprocal</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line242">242: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPermute.html#VecPermute">VecPermute</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a>, <a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a> )</font></strong>;
<a name="line243">243: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSqrtAbs.html#VecSqrtAbs">VecSqrtAbs</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line244">244: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecLog.html#VecLog">VecLog</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line245">245: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecExp.html#VecExp">VecExp</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line246">246: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAbs.html#VecAbs">VecAbs</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line247">247: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDuplicate.html#VecDuplicate">VecDuplicate</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line248">248: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDuplicateVecs.html#VecDuplicateVecs">VecDuplicateVecs</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*[])</font></strong>;
<a name="line249">249: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDestroyVecs.html#VecDestroyVecs">VecDestroyVecs</a>(<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*[])</font></strong>;
<a name="line250">250: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideNormAll.html#VecStrideNormAll">VecStrideNormAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>[])</font></strong>;
<a name="line251">251: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideMaxAll.html#VecStrideMaxAll">VecStrideMaxAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> [],<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> [])</font></strong>;
<a name="line252">252: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideMinAll.html#VecStrideMinAll">VecStrideMinAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> [],<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> [])</font></strong>;
<a name="line253">253: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideScaleAll.html#VecStrideScaleAll">VecStrideScaleAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line254">254: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecUniqueEntries.html#VecUniqueEntries">VecUniqueEntries</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**)</font></strong>;
<a name="line256">256: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideNorm.html#VecStrideNorm">VecStrideNorm</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line257">257: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideMax.html#VecStrideMax">VecStrideMax</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> *,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line258">258: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideMin.html#VecStrideMin">VecStrideMin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> *,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line259">259: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideScale.html#VecStrideScale">VecStrideScale</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line260">260: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideSet.html#VecStrideSet">VecStrideSet</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line263">263: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideGather.html#VecStrideGather">VecStrideGather</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line264">264: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideScatter.html#VecStrideScatter">VecStrideScatter</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line265">265: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideGatherAll.html#VecStrideGatherAll">VecStrideGatherAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line266">266: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideScatterAll.html#VecStrideScatterAll">VecStrideScatterAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line268">268: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideSubSetScatter.html#VecStrideSubSetScatter">VecStrideSubSetScatter</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line269">269: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStrideSubSetGather.html#VecStrideSubSetGather">VecStrideSubSetGather</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line271">271: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line272">272: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetValues.html#VecGetValues">VecGetValues</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line273">273: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAssemblyBegin.html#VecAssemblyBegin">VecAssemblyBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line274">274: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecAssemblyEnd.html#VecAssemblyEnd">VecAssemblyEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line275">275: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStashSetInitialSize.html#VecStashSetInitialSize">VecStashSetInitialSize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>)</font></strong>;
<a name="line276">276: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStashView.html#VecStashView">VecStashView</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>)</font></strong>;
<a name="line277">277: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecStashViewFromOptions(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscObject.html#PetscObject">PetscObject</a>,const char[])</font></strong>;
<a name="line278">278: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStashGetInfo.html#VecStashGetInfo">VecStashGetInfo</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line280">280: </a><font color="#B22222">/*MC</font>
<a name="line281">281: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/VecSetValue.html#VecSetValue">VecSetValue</a> - Set a single entry into a vector.</font>
<a name="line283">283: </a><font color="#B22222"> Synopsis:</font>
<a name="line284">284: </a><font color="#B22222"> #include <petscvec.h></font>
<a name="line285">285: </a><font color="#B22222"> <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValue.html#VecSetValue">VecSetValue</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> v,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> row,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> value, <a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a> mode);</font>
<a name="line287">287: </a><font color="#B22222"> Not Collective</font>
<a name="line289">289: </a><font color="#B22222"> Input Parameters:</font>
<a name="line290">290: </a><font color="#B22222">+ v - the vector</font>
<a name="line291">291: </a><font color="#B22222">. row - the row location of the entry</font>
<a name="line292">292: </a><font color="#B22222">. value - the value to insert</font>
<a name="line293">293: </a><font color="#B22222">- mode - either <a href="../docs/manualpages/Sys/INSERT_VALUES.html#INSERT_VALUES">INSERT_VALUES</a> or <a href="../docs/manualpages/Sys/ADD_VALUES.html#ADD_VALUES">ADD_VALUES</a></font>
<a name="line295">295: </a><font color="#B22222"> Notes:</font>
<a name="line296">296: </a><font color="#B22222"> For efficiency one should use <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>() and set several or</font>
<a name="line297">297: </a><font color="#B22222"> many values simultaneously if possible.</font>
<a name="line299">299: </a><font color="#B22222"> These values may be cached, so <a href="../docs/manualpages/Vec/VecAssemblyBegin.html#VecAssemblyBegin">VecAssemblyBegin</a>() and <a href="../docs/manualpages/Vec/VecAssemblyEnd.html#VecAssemblyEnd">VecAssemblyEnd</a>()</font>
<a name="line300">300: </a><font color="#B22222"> MUST be called after all calls to <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>() have been completed.</font>
<a name="line302">302: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>() uses 0-based indices in Fortran as well as in C.</font>
<a name="line304">304: </a><font color="#B22222"> Level: beginner</font>
<a name="line306">306: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>(), <a href="../docs/manualpages/Vec/VecAssemblyBegin.html#VecAssemblyBegin">VecAssemblyBegin</a>(), <a href="../docs/manualpages/Vec/VecAssemblyEnd.html#VecAssemblyEnd">VecAssemblyEnd</a>(), <a href="../docs/manualpages/Vec/VecSetValuesBlockedLocal.html#VecSetValuesBlockedLocal">VecSetValuesBlockedLocal</a>(), <a href="../docs/manualpages/Vec/VecSetValueLocal.html#VecSetValueLocal">VecSetValueLocal</a>()</font>
<a name="line307">307: </a><font color="#B22222">M*/</font>
<a name="line308">308: </a><strong><font color="#4169E1"><a name="VecSetValue"></a>PETSC_STATIC_INLINE <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValue.html#VecSetValue">VecSetValue</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> v,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> i,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> va,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a> mode)</font></strong> {<font color="#4169E1">return</font> <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>(v,1,&i,&va,mode);}
<a name="line311">311: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetBlockSize.html#VecSetBlockSize">VecSetBlockSize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>)</font></strong>;
<a name="line312">312: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetBlockSize.html#VecGetBlockSize">VecGetBlockSize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line313">313: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValuesBlocked.html#VecSetValuesBlocked">VecSetValuesBlocked</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line315">315: </a><font color="#B22222">/* Dynamic creation and loading functions */</font>
<a name="line316">316: </a>PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscFunctionList.html#PetscFunctionList">PetscFunctionList</a> VecList;
<a name="line317">317: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetType.html#VecSetType">VecSetType</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/VecType.html#VecType">VecType</a>)</font></strong>;
<a name="line318">318: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetType.html#VecGetType">VecGetType</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/VecType.html#VecType">VecType</a> *)</font></strong>;
<a name="line319">319: </a><strong><font color="#4169E1"><a name="VecRegister"></a>PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRegister.html#VecRegister">VecRegister</a>(const char[],<a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> (*)(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>);
<a name="line321">321: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterCreate.html#VecScatterCreate">VecScatterCreate</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>,<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a> *)</font></strong>;
<a name="line322">322: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecScatterCreateEmpty(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a> *)</font></strong>;
<a name="line323">323: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterCreateLocal.html#VecScatterCreateLocal">VecScatterCreateLocal</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>)</font></strong>;
<a name="line324">324: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterBegin.html#VecScatterBegin">VecScatterBegin</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>,<a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>)</font></strong>;
<a name="line325">325: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterEnd.html#VecScatterEnd">VecScatterEnd</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>,<a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>)</font></strong>;
<a name="line326">326: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterDestroy.html#VecScatterDestroy">VecScatterDestroy</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>*)</font></strong>;
<a name="line327">327: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterCopy.html#VecScatterCopy">VecScatterCopy</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a> *)</font></strong>;
<a name="line328">328: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterView.html#VecScatterView">VecScatterView</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>)</font></strong>;
<a name="line329">329: </a><strong><font color="#4169E1"><a name="VecScatterViewFromOptions"></a>PETSC_STATIC_INLINE <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecScatterViewFromOptions(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a> A,<a href="../docs/manualpages/Sys/PetscObject.html#PetscObject">PetscObject</a> obj,const char name[])</font></strong> {<font color="#4169E1">return</font> <a href="../docs/manualpages/Sys/PetscObjectViewFromOptions.html#PetscObjectViewFromOptions">PetscObjectViewFromOptions</a>((<a href="../docs/manualpages/Sys/PetscObject.html#PetscObject">PetscObject</a>)A,obj,name);}
<a name="line330">330: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecScatterRemap(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> *,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line331">331: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterGetMerged.html#VecScatterGetMerged">VecScatterGetMerged</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a> *)</font></strong>;
<a name="line333">333: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray4d.html#VecGetArray4d">VecGetArray4d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>****[])</font></strong>;
<a name="line334">334: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray4d.html#VecRestoreArray4d">VecRestoreArray4d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>****[])</font></strong>;
<a name="line335">335: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray3d.html#VecGetArray3d">VecGetArray3d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>***[])</font></strong>;
<a name="line336">336: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray3d.html#VecRestoreArray3d">VecRestoreArray3d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>***[])</font></strong>;
<a name="line337">337: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray2d.html#VecGetArray2d">VecGetArray2d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**[])</font></strong>;
<a name="line338">338: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray2d.html#VecRestoreArray2d">VecRestoreArray2d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**[])</font></strong>;
<a name="line339">339: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray1d.html#VecGetArray1d">VecGetArray1d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *[])</font></strong>;
<a name="line340">340: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray1d.html#VecRestoreArray1d">VecRestoreArray1d</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *[])</font></strong>;
<a name="line342">342: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray4dRead.html#VecGetArray4dRead">VecGetArray4dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>****[])</font></strong>;
<a name="line343">343: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray4dRead.html#VecRestoreArray4dRead">VecRestoreArray4dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>****[])</font></strong>;
<a name="line344">344: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray3dRead.html#VecGetArray3dRead">VecGetArray3dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>***[])</font></strong>;
<a name="line345">345: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray3dRead.html#VecRestoreArray3dRead">VecRestoreArray3dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>***[])</font></strong>;
<a name="line346">346: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray2dRead.html#VecGetArray2dRead">VecGetArray2dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**[])</font></strong>;
<a name="line347">347: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray2dRead.html#VecRestoreArray2dRead">VecRestoreArray2dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**[])</font></strong>;
<a name="line348">348: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray1dRead.html#VecGetArray1dRead">VecGetArray1dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *[])</font></strong>;
<a name="line349">349: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray1dRead.html#VecRestoreArray1dRead">VecRestoreArray1dRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *[])</font></strong>;
<a name="line351">351: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPlaceArray.html#VecPlaceArray">VecPlaceArray</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line352">352: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecResetArray.html#VecResetArray">VecResetArray</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line353">353: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecReplaceArray.html#VecReplaceArray">VecReplaceArray</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line354">354: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArrays.html#VecGetArrays">VecGetArrays</a>(const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**[])</font></strong>;
<a name="line355">355: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArrays.html#VecRestoreArrays">VecRestoreArrays</a>(const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**[])</font></strong>;
<a name="line357">357: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecView.html#VecView">VecView</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>)</font></strong>;
<a name="line358">358: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecEqual.html#VecEqual">VecEqual</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a> *)</font></strong>;
<a name="line359">359: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecLoad.html#VecLoad">VecLoad</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>)</font></strong>;
<a name="line361">361: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetSize.html#VecGetSize">VecGetSize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line362">362: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetLocalSize.html#VecGetLocalSize">VecGetLocalSize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line363">363: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetOwnershipRange.html#VecGetOwnershipRange">VecGetOwnershipRange</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line364">364: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetOwnershipRanges.html#VecGetOwnershipRanges">VecGetOwnershipRanges</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> *[])</font></strong>;
<a name="line366">366: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetLocalToGlobalMapping.html#VecSetLocalToGlobalMapping">VecSetLocalToGlobalMapping</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/ISLocalToGlobalMapping.html#ISLocalToGlobalMapping">ISLocalToGlobalMapping</a>)</font></strong>;
<a name="line367">367: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValuesLocal.html#VecSetValuesLocal">VecSetValuesLocal</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line369">369: </a><font color="#B22222">/*MC</font>
<a name="line370">370: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/VecSetValueLocal.html#VecSetValueLocal">VecSetValueLocal</a> - Set a single entry into a vector using the local numbering</font>
<a name="line372">372: </a><font color="#B22222"> Synopsis:</font>
<a name="line373">373: </a><font color="#B22222"> #include <petscvec.h></font>
<a name="line374">374: </a><font color="#B22222"> <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValueLocal.html#VecSetValueLocal">VecSetValueLocal</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> v,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> row,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> value, <a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a> mode);</font>
<a name="line376">376: </a><font color="#B22222"> Not Collective</font>
<a name="line378">378: </a><font color="#B22222"> Input Parameters:</font>
<a name="line379">379: </a><font color="#B22222">+ v - the vector</font>
<a name="line380">380: </a><font color="#B22222">. row - the row location of the entry</font>
<a name="line381">381: </a><font color="#B22222">. value - the value to insert</font>
<a name="line382">382: </a><font color="#B22222">- mode - either <a href="../docs/manualpages/Sys/INSERT_VALUES.html#INSERT_VALUES">INSERT_VALUES</a> or <a href="../docs/manualpages/Sys/ADD_VALUES.html#ADD_VALUES">ADD_VALUES</a></font>
<a name="line384">384: </a><font color="#B22222"> Notes:</font>
<a name="line385">385: </a><font color="#B22222"> For efficiency one should use <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>() and set several or</font>
<a name="line386">386: </a><font color="#B22222"> many values simultaneously if possible.</font>
<a name="line388">388: </a><font color="#B22222"> These values may be cached, so <a href="../docs/manualpages/Vec/VecAssemblyBegin.html#VecAssemblyBegin">VecAssemblyBegin</a>() and <a href="../docs/manualpages/Vec/VecAssemblyEnd.html#VecAssemblyEnd">VecAssemblyEnd</a>()</font>
<a name="line389">389: </a><font color="#B22222"> MUST be called after all calls to <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>() have been completed.</font>
<a name="line391">391: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>() uses 0-based indices in Fortran as well as in C.</font>
<a name="line393">393: </a><font color="#B22222"> Level: beginner</font>
<a name="line395">395: </a><font color="#B22222">.seealso: <a href="../docs/manualpages/Vec/VecSetValues.html#VecSetValues">VecSetValues</a>(), <a href="../docs/manualpages/Vec/VecAssemblyBegin.html#VecAssemblyBegin">VecAssemblyBegin</a>(), <a href="../docs/manualpages/Vec/VecAssemblyEnd.html#VecAssemblyEnd">VecAssemblyEnd</a>(), <a href="../docs/manualpages/Vec/VecSetValuesBlockedLocal.html#VecSetValuesBlockedLocal">VecSetValuesBlockedLocal</a>(), <a href="../docs/manualpages/Vec/VecSetValue.html#VecSetValue">VecSetValue</a>()</font>
<a name="line396">396: </a><font color="#B22222">M*/</font>
<a name="line397">397: </a><strong><font color="#4169E1"><a name="VecSetValueLocal"></a>PETSC_STATIC_INLINE <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValueLocal.html#VecSetValueLocal">VecSetValueLocal</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> v,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> i,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> va,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a> mode)</font></strong> {<font color="#4169E1">return</font> <a href="../docs/manualpages/Vec/VecSetValuesLocal.html#VecSetValuesLocal">VecSetValuesLocal</a>(v,1,&i,&va,mode);}
<a name="line399">399: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValuesBlockedLocal.html#VecSetValuesBlockedLocal">VecSetValuesBlockedLocal</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line400">400: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetLocalToGlobalMapping.html#VecGetLocalToGlobalMapping">VecGetLocalToGlobalMapping</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/ISLocalToGlobalMapping.html#ISLocalToGlobalMapping">ISLocalToGlobalMapping</a>*)</font></strong>;
<a name="line402">402: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDotBegin.html#VecDotBegin">VecDotBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *)</font></strong>;
<a name="line403">403: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecDotEnd.html#VecDotEnd">VecDotEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *)</font></strong>;
<a name="line404">404: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecTDotBegin.html#VecTDotBegin">VecTDotBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *)</font></strong>;
<a name="line405">405: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecTDotEnd.html#VecTDotEnd">VecTDotEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> *)</font></strong>;
<a name="line406">406: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNormBegin.html#VecNormBegin">VecNormBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line407">407: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNormEnd.html#VecNormEnd">VecNormEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line409">409: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMDotBegin.html#VecMDotBegin">VecMDotBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line410">410: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMDotEnd.html#VecMDotEnd">VecMDotEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line411">411: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMTDotBegin.html#VecMTDotBegin">VecMTDotBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line412">412: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMTDotEnd.html#VecMTDotEnd">VecMTDotEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>[],<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[])</font></strong>;
<a name="line413">413: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/PetscCommSplitReductionBegin.html#PetscCommSplitReductionBegin">PetscCommSplitReductionBegin</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>)</font></strong>;
<a name="line416">416: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {VEC_IGNORE_OFF_PROC_ENTRIES,VEC_IGNORE_NEGATIVE_INDICES,VEC_SUBSET_OFF_PROC_ENTRIES} VecOption;
<a name="line417">417: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetOption.html#VecSetOption">VecSetOption</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,VecOption,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a> )</font></strong>;
<a name="line419">419: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArray.html#VecGetArray">VecGetArray</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**)</font></strong>;
<a name="line420">420: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetArrayRead.html#VecGetArrayRead">VecGetArrayRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**)</font></strong>;
<a name="line421">421: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArray.html#VecRestoreArray">VecRestoreArray</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**)</font></strong>;
<a name="line422">422: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreArrayRead.html#VecRestoreArrayRead">VecRestoreArrayRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>**)</font></strong>;
<a name="line423">423: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetLocalVector.html#VecGetLocalVector">VecGetLocalVector</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line424">424: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreLocalVector.html#VecRestoreLocalVector">VecRestoreLocalVector</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line425">425: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetLocalVectorRead.html#VecGetLocalVectorRead">VecGetLocalVectorRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line426">426: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecRestoreLocalVectorRead.html#VecRestoreLocalVectorRead">VecRestoreLocalVectorRead</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line427">427: </a><font color="#B22222">/*</font>
<a name="line428">428: </a><font color="#B22222"> Accesses a pair of pointers for two vectors that may be common. When not common the first is read only</font>
<a name="line429">429: </a><font color="#B22222">*/</font>
<a name="line430">430: </a><strong><font color="#4169E1"><a name="VecGetArrayPair"></a>PETSC_STATIC_INLINE <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecGetArrayPair(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> x,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> y,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **xv,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **yv)</font></strong>
<a name="line431">431: </a>{
<a name="line435">435: </a> <a href="../docs/manualpages/Vec/VecGetArray.html#VecGetArray">VecGetArray</a>(y,yv);
<a name="line436">436: </a> <font color="#4169E1">if</font> (x != y) {
<a name="line437">437: </a> <a href="../docs/manualpages/Vec/VecGetArrayRead.html#VecGetArrayRead">VecGetArrayRead</a>(x,(const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **)xv);
<a name="line438">438: </a> } <font color="#4169E1">else</font> {
<a name="line439">439: </a> *xv = *yv;
<a name="line440">440: </a> }
<a name="line441">441: </a> <font color="#4169E1">return</font>(0);
<a name="line442">442: </a>}
<a name="line443">443: </a><strong><font color="#4169E1"><a name="VecRestoreArrayPair"></a>PETSC_STATIC_INLINE <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecRestoreArrayPair(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> x,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> y,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **xv,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **yv)</font></strong>
<a name="line444">444: </a>{
<a name="line448">448: </a> <a href="../docs/manualpages/Vec/VecRestoreArray.html#VecRestoreArray">VecRestoreArray</a>(y,yv);
<a name="line449">449: </a> <font color="#4169E1">if</font> (x != y) {
<a name="line450">450: </a> <a href="../docs/manualpages/Vec/VecRestoreArrayRead.html#VecRestoreArrayRead">VecRestoreArrayRead</a>(x,(const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **)xv);
<a name="line451">451: </a> }
<a name="line452">452: </a> <font color="#4169E1">return</font>(0);
<a name="line453">453: </a>}
<a name="line455">455: </a><font color="#A020F0">#if defined(PETSC_USE_DEBUG)</font>
<a name="line456">456: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecLockGet.html#VecLockGet">VecLockGet</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line457">457: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecLockPush.html#VecLockPush">VecLockPush</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line458">458: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecLockPop.html#VecLockPop">VecLockPop</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line459">459: </a><strong><font color="#228B22">#define VecLocked(x,arg) do {<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> _st; <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> __VecLockGet(x,&_st); <a href="../docs/manualpages/Sys/CHKERRQ.html#CHKERRQ">CHKERRQ</a>(__ierr); if (_st > 0) <a href="../docs/manualpages/Sys/SETERRQ1.html#SETERRQ1">SETERRQ1</a>(<a href="../docs/manualpages/Sys/PETSC_COMM_SELF.html#PETSC_COMM_SELF">PETSC_COMM_SELF</a>,PETSC_ERR_ARG_WRONGSTATE,</font><font color="#666666">" <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> is locked read only, argument # %d"</font><font color="#228B22">,arg);} while (0)</font></strong>
<a name="line460">460: </a><font color="#A020F0">#else</font>
<a name="line461">461: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VecLockGet.html#VecLockGet">VecLockGet</a>(x,arg) *(arg) = 0</font></strong>
<a name="line462">462: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VecLockPush.html#VecLockPush">VecLockPush</a>(x) 0</font></strong>
<a name="line463">463: </a><strong><font color="#228B22">#define <a href="../docs/manualpages/Vec/VecLockPop.html#VecLockPop">VecLockPop</a>(x) 0</font></strong>
<a name="line464">464: </a><strong><font color="#228B22">#define VecLocked(x,arg)</font></strong>
<a name="line465">465: </a><font color="#A020F0">#endif</font>
<a name="line467">467: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecValidValues(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a>)</font></strong>;
<a name="line469">469: </a><font color="#B22222">/*</font>
<a name="line470">470: </a><font color="#B22222"> These numbers need to match the entries in</font>
<a name="line471">471: </a><font color="#B22222"> the function table in vecimpl.h</font>
<a name="line472">472: </a><font color="#B22222">*/</font>
<a name="line473">473: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> { VECOP_DUPLICATE = 0, VECOP_VIEW = 33, VECOP_LOAD = 41, VECOP_VIEWNATIVE = 68, VECOP_LOADNATIVE = 69 } VecOperation;
<a name="line474">474: </a><strong><font color="#4169E1"><a name="VecSetOperation"></a>PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetOperation.html#VecSetOperation">VecSetOperation</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,VecOperation,void(*)(void)</font></strong>);
<a name="line476">476: </a><font color="#B22222">/*</font>
<a name="line477">477: </a><font color="#B22222"> Routines for dealing with ghosted vectors:</font>
<a name="line478">478: </a><font color="#B22222"> vectors with ghost elements at the end of the array.</font>
<a name="line479">479: </a><font color="#B22222">*/</font>
<a name="line480">480: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMPISetGhost.html#VecMPISetGhost">VecMPISetGhost</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[])</font></strong>;
<a name="line481">481: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateGhost.html#VecCreateGhost">VecCreateGhost</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line482">482: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateGhostWithArray.html#VecCreateGhostWithArray">VecCreateGhostWithArray</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line483">483: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateGhostBlock.html#VecCreateGhostBlock">VecCreateGhostBlock</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line484">484: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateGhostBlockWithArray.html#VecCreateGhostBlockWithArray">VecCreateGhostBlockWithArray</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,const <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>[],const <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line485">485: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGhostGetLocalForm.html#VecGhostGetLocalForm">VecGhostGetLocalForm</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line486">486: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGhostRestoreLocalForm.html#VecGhostRestoreLocalForm">VecGhostRestoreLocalForm</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line487">487: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGhostIsLocalForm.html#VecGhostIsLocalForm">VecGhostIsLocalForm</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a>*)</font></strong>;
<a name="line488">488: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGhostUpdateBegin.html#VecGhostUpdateBegin">VecGhostUpdateBegin</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>,<a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>)</font></strong>;
<a name="line489">489: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGhostUpdateEnd.html#VecGhostUpdateEnd">VecGhostUpdateEnd</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>,<a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>)</font></strong>;
<a name="line491">491: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecConjugate.html#VecConjugate">VecConjugate</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line493">493: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterCreateToAll.html#VecScatterCreateToAll">VecScatterCreateToAll</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>*,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line494">494: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterCreateToZero.html#VecScatterCreateToZero">VecScatterCreateToZero</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>*,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line496">496: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/ISComplementVec.html#ISComplementVec">ISComplementVec</a>(<a href="../docs/manualpages/IS/IS.html#IS">IS</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>*)</font></strong>;
<a name="line497">497: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecPow.html#VecPow">VecPow</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line498">498: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecMedian.html#VecMedian">VecMedian</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line499">499: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecWhichBetween.html#VecWhichBetween">VecWhichBetween</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a> *)</font></strong>;
<a name="line500">500: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecWhichBetweenOrEqual.html#VecWhichBetweenOrEqual">VecWhichBetweenOrEqual</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a> *)</font></strong>;
<a name="line501">501: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecWhichGreaterThan.html#VecWhichGreaterThan">VecWhichGreaterThan</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a> * )</font></strong>;
<a name="line502">502: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecWhichLessThan.html#VecWhichLessThan">VecWhichLessThan</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a> *)</font></strong>;
<a name="line503">503: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecWhichEqual.html#VecWhichEqual">VecWhichEqual</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a> *)</font></strong>;
<a name="line504">504: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecISAXPY.html#VecISAXPY">VecISAXPY</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/IS.html#IS">IS</a>, <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line505">505: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecISSet.html#VecISSet">VecISSet</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>, <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>)</font></strong>;
<a name="line506">506: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecBoundGradientProjection.html#VecBoundGradientProjection">VecBoundGradientProjection</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line507">507: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStepBoundInfo.html#VecStepBoundInfo">VecStepBoundInfo</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*, <a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line508">508: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecStepMax.html#VecStepMax">VecStepMax</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> *)</font></strong>;
<a name="line509">509: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecStepMaxBounded(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>*)</font></strong>;
<a name="line511">511: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Viewer/PetscViewerMathematicaGetVector.html#PetscViewerMathematicaGetVector">PetscViewerMathematicaGetVector</a>(<a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line512">512: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Viewer/PetscViewerMathematicaPutVector.html#PetscViewerMathematicaPutVector">PetscViewerMathematicaPutVector</a>(<a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line514">514: </a><font color="#B22222">/*S</font>
<a name="line515">515: </a><font color="#B22222"> <a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a> - Collection of vectors where the data for the vectors is stored in</font>
<a name="line516">516: </a><font color="#B22222"> one contiguous memory</font>
<a name="line518">518: </a><font color="#B22222"> Level: advanced</font>
<a name="line520">520: </a><font color="#B22222"> Notes:</font>
<a name="line521">521: </a><font color="#B22222"> Temporary construct for handling multiply right hand side solves</font>
<a name="line523">523: </a><font color="#B22222"> This is faked by storing a single vector that has enough array space for</font>
<a name="line524">524: </a><font color="#B22222"> n vectors</font>
<a name="line526">526: </a><font color="#B22222"> Concepts: parallel decomposition</font>
<a name="line528">528: </a><font color="#B22222">S*/</font>
<a name="line529">529: </a> <font color="#4169E1">struct _n_Vecs</font> {<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a> n; <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a> v;};
<a name="line530">530: </a><font color="#4169E1">typedef struct _n_Vecs* <a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a>;</font>
<a name="line531">531: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecsDestroy(<a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a>)</font></strong>;
<a name="line532">532: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecsCreateSeq(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a>*)</font></strong>;
<a name="line533">533: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecsCreateSeqWithArray(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a>*,<a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a>*)</font></strong>;
<a name="line534">534: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecsDuplicate(<a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a>,<a href="../docs/manualpages/Vec/Vecs.html#Vecs">Vecs</a>*)</font></strong>;
<a name="line536">536: </a><font color="#A020F0">#if defined(PETSC_HAVE_CUSP)</font>
<a name="line537">537: </a><font color="#4169E1">typedef struct _p_PetscCUSPIndices* PetscCUSPIndices;</font>
<a name="line538">538: </a><font color="#4169E1">typedef struct _p_VecScatterCUSPIndices_StoS* VecScatterCUSPIndices_StoS;</font>
<a name="line539">539: </a><font color="#4169E1">typedef struct _p_VecScatterCUSPIndices_PtoP* VecScatterCUSPIndices_PtoP;</font>
<a name="line540">540: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCUSPCopyToGPUSome_Public(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,PetscCUSPIndices)</font></strong>;
<a name="line541">541: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCUSPCopyFromGPUSome_Public(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,PetscCUSPIndices)</font></strong>;
<a name="line542">542: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterInitializeForGPU.html#VecScatterInitializeForGPU">VecScatterInitializeForGPU</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>)</font></strong>;
<a name="line543">543: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterFinalizeForGPU.html#VecScatterFinalizeForGPU">VecScatterFinalizeForGPU</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>)</font></strong>;
<a name="line544">544: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateSeqCUSP.html#VecCreateSeqCUSP">VecCreateSeqCUSP</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line545">545: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCreateMPICUSP(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line546">546: </a><font color="#A020F0">#elif defined(PETSC_HAVE_VIENNACL)</font>
<a name="line547">547: </a><font color="#4169E1">typedef struct _p_PetscViennaCLIndices* PetscViennaCLIndices;</font>
<a name="line548">548: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> PetscViennaCLIndicesCreate(<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>, <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>, <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,PetscViennaCLIndices*)</font></strong>;
<a name="line549">549: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> PetscViennaCLIndicesDestroy(PetscViennaCLIndices*)</font></strong>;
<a name="line550">550: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecViennaCLCopyToGPUSome_Public(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,PetscViennaCLIndices)</font></strong>;
<a name="line551">551: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecViennaCLCopyFromGPUSome_Public(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,PetscViennaCLIndices)</font></strong>;
<a name="line552">552: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateSeqViennaCL.html#VecCreateSeqViennaCL">VecCreateSeqViennaCL</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line553">553: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCreateMPIViennaCL(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line554">554: </a><font color="#A020F0">#elif defined(PETSC_HAVE_VECCUDA)</font>
<a name="line555">555: </a><font color="#4169E1">typedef struct _p_PetscCUDAIndices* PetscCUDAIndices;</font>
<a name="line556">556: </a><font color="#4169E1">typedef struct _p_VecScatterCUDAIndices_StoS* VecScatterCUDAIndices_StoS;</font>
<a name="line557">557: </a><font color="#4169E1">typedef struct _p_VecScatterCUDAIndices_PtoP* VecScatterCUDAIndices_PtoP;</font>
<a name="line558">558: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCUDACopyToGPUSome_Public(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,PetscCUDAIndices)</font></strong>;
<a name="line559">559: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCUDACopyFromGPUSome_Public(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,PetscCUDAIndices)</font></strong>;
<a name="line560">560: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterInitializeForGPU.html#VecScatterInitializeForGPU">VecScatterInitializeForGPU</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Vec/ScatterMode.html#ScatterMode">ScatterMode</a>)</font></strong>;
<a name="line561">561: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecScatterFinalizeForGPU.html#VecScatterFinalizeForGPU">VecScatterFinalizeForGPU</a>(<a href="../docs/manualpages/Vec/VecScatter.html#VecScatter">VecScatter</a>)</font></strong>;
<a name="line562">562: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateSeqCUDA.html#VecCreateSeqCUDA">VecCreateSeqCUDA</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line563">563: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecCreateMPICUDA(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line564">564: </a><font color="#A020F0">#endif</font>
<a name="line566">566: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNestGetSubVecs.html#VecNestGetSubVecs">VecNestGetSubVecs</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>**)</font></strong>;
<a name="line567">567: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNestGetSubVec.html#VecNestGetSubVec">VecNestGetSubVec</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line568">568: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNestSetSubVecs.html#VecNestSetSubVecs">VecNestSetSubVecs</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line569">569: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNestSetSubVec.html#VecNestSetSubVec">VecNestSetSubVec</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>)</font></strong>;
<a name="line570">570: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecCreateNest.html#VecCreateNest">VecCreateNest</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>,<a href="../docs/manualpages/IS/IS.html#IS">IS</a>*,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>*)</font></strong>;
<a name="line571">571: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecNestGetSize.html#VecNestGetSize">VecNestGetSize</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>*)</font></strong>;
<a name="line573">573: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> PetscOptionsGetVec(PetscOptions,const char[],const char[],<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscBool.html#PetscBool">PetscBool</a>*)</font></strong>;
<a name="line574">574: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecChop.html#VecChop">VecChop</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a>)</font></strong>;
<a name="line576">576: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecGetLayout.html#VecGetLayout">VecGetLayout</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/PetscLayout.html#PetscLayout">PetscLayout</a>*)</font></strong>;
<a name="line577">577: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetLayout.html#VecSetLayout">VecSetLayout</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/IS/PetscLayout.html#PetscLayout">PetscLayout</a>)</font></strong>;
<a name="line579">579: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> PetscSectionVecView(<a href="../docs/manualpages/IS/PetscSection.html#PetscSection">PetscSection</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Viewer/PetscViewer.html#PetscViewer">PetscViewer</a>)</font></strong>;
<a name="line580">580: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> VecGetValuesSection(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/PetscSection.html#PetscSection">PetscSection</a>, <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>, <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> **)</font></strong>;
<a name="line581">581: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/VecSetValuesSection.html#VecSetValuesSection">VecSetValuesSection</a>(<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/IS/PetscSection.html#PetscSection">PetscSection</a>, <a href="../docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>, <a href="../docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a> [], <a href="../docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a>)</font></strong>;
<a name="line582">582: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/PetscSectionVecNorm.html#PetscSectionVecNorm">PetscSectionVecNorm</a>(<a href="../docs/manualpages/IS/PetscSection.html#PetscSection">PetscSection</a>, <a href="../docs/manualpages/IS/PetscSection.html#PetscSection">PetscSection</a>, <a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>, <a href="../docs/manualpages/Vec/NormType.html#NormType">NormType</a>, <a href="../docs/manualpages/Sys/PetscReal.html#PetscReal">PetscReal</a> [])</font></strong>;
<a name="line584">584: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a> <a href="../docs/manualpages/Vec/PetscSFCreateFromZero.html#PetscSFCreateFromZero">PetscSFCreateFromZero</a>(<a href="../docs/manualpages/Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</a>,<a href="../docs/manualpages/Vec/Vec.html#Vec">Vec</a>,<a href="../docs/manualpages/PetscSF/PetscSF.html#PetscSF">PetscSF</a>*)</font></strong>;
<a name="line586">586: </a><font color="#A020F0">#endif</font>
</pre>
</body>
</html>
|