MatDestroy

Frees space taken by a matrix.

Synopsis

#include "petscmat.h" 
int MatDestroy(Mat mat)
Collective on Mat

Input Parameter

mat -the matrix

Keywords

matrix, destroy

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/ex1.c
src/sles/examples/tutorials/ex1.c
src/sles/examples/tutorials/ex2.c
src/sles/examples/tutorials/ex3.c
src/sles/examples/tutorials/ex4.c
src/sles/examples/tutorials/ex5.c
src/sles/examples/tutorials/ex7.c
src/sles/examples/tutorials/ex8.c
src/sles/examples/tutorials/ex9.c
src/sles/examples/tutorials/ex10.c
src/sles/examples/tutorials/ex11.c