petsc-3.15.0 2021-03-30
Report Typos and Errors

MatDestroy

Frees space taken by a matrix.

Synopsis

#include "petscmat.h" 
PetscErrorCode MatDestroy(Mat *A)
Collective on Mat

Input Parameter

A - the matrix

Level

beginner

Location

src/mat/interface/matrix.c

Examples

src/mat/tutorials/ex1.c.html
src/mat/tutorials/ex2.c.html
src/mat/tutorials/ex4.c.html
src/mat/tutorials/ex8.c.html
src/mat/tutorials/ex9.c.html
src/mat/tutorials/ex10.c.html
src/mat/tutorials/ex11.c.html
src/mat/tutorials/ex12.c.html
src/mat/tutorials/ex15.c.html
src/mat/tutorials/ex16.c.html
src/mat/tutorials/ex17.c.html

Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages