MatSetType#
Builds matrix object for a particular matrix type
Synopsis#
#include "petscmat.h"
PetscErrorCode MatSetType(Mat mat, MatType matype)
Collective
Input Parameters#
mat - the matrix object
matype - matrix type
Options Database Key#
-mat_type
- Sets the type; seeMatType
Note#
See MatType
for possible values
See Also#
Matrices, Mat
, PCSetType()
, VecSetType()
, MatCreate()
, MatType
Level#
intermediate
Location#
Examples#
src/tao/leastsquares/tutorials/tomography.c
src/snes/tutorials/ex12.c
src/mat/tutorials/ex12.c
src/tao/constrained/tutorials/maros.c
src/snes/tutorials/ex70.c
src/mat/tutorials/ex1.c
src/tao/constrained/tutorials/tomographyADMM.c
src/mat/tutorials/ex8.c
src/tao/tutorials/ex4.c
src/mat/tutorials/ex2.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages