petsc-3.6.1 2015-08-06
MatSetUp
Sets up the internal matrix data structures for the later use.
Synopsis
#include "petscmat.h"
PetscErrorCode MatSetUp(Mat A)
Collective on Mat
Input Parameters
A -the Mat context
Notes
If the user has not set preallocation for this matrix then a default preallocation that is likely to be inefficient is used.
If a suitable preallocation routine is used, this function does not need to be called.
See the Performance chapter of the PETSc users manual for how to preallocate matrices
Keywords
Mat, setup
See Also
MatCreate(), MatDestroy()
Level:beginner
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/mat/examples/tutorials/ex8.c.html
src/ksp/ksp/examples/tutorials/ex1.c.html
src/ksp/ksp/examples/tutorials/ex5.c.html
src/ksp/ksp/examples/tutorials/ex8.c.html
src/ksp/ksp/examples/tutorials/ex9.c.html
src/ksp/ksp/examples/tutorials/ex11.c.html
src/ksp/ksp/examples/tutorials/ex12.c.html
src/ksp/ksp/examples/tutorials/ex15.c.html
src/ksp/ksp/examples/tutorials/ex16.c.html
src/ksp/ksp/examples/tutorials/ex18.c.html
src/ksp/ksp/examples/tutorials/ex23.c.html