petsc-3.7.1 2016-05-15
MatSetType
Builds matrix object for a particular matrix type
Synopsis
#include "petscmat.h"
PetscErrorCode MatSetType(Mat mat, MatType matype)
Collective on Mat Many br
Input Parameters
| mat | - the matrix object Many br |
| matype | - matrix type Many br |
Options Database Key
-mat_type <method> -Sets the type; use -help for a list Many brof available methods (for instance, seqaij) Many br
Notes
See "${PETSC_DIR}/include/petscmat.h" for available methods Many br
Many br
Keywords
Mat, MatType, set, method
See Also
PCSetType(), VecSetType(), MatCreate(), MatType, Mat
Level:intermediate
Location:src/mat/interface/matreg.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/mat/examples/tutorials/ex1.c.html
src/mat/examples/tutorials/ex2.c.html
src/mat/examples/tutorials/ex4.c.html
src/mat/examples/tutorials/ex5.c.html
src/mat/examples/tutorials/ex8.c.html
src/mat/examples/tutorials/ex12.c.html
src/ksp/ksp/examples/tutorials/ex4.c.html
src/ksp/ksp/examples/tutorials/ex27.c.html
src/ksp/ksp/examples/tutorials/ex30.c.html
src/ksp/ksp/examples/tutorials/ex55.c.html
src/ksp/ksp/examples/tutorials/ex56.c.html