MatProductClear#
Clears from the matrix any internal data structures related to the computation of the values of the matrix from matrix-matrix product operations
Synopsis#
#include "petscmat.h"
PetscErrorCode MatProductClear(Mat mat)
Collective
Input Parameter#
mat - the matrix whose values are to be computed via a matrix-matrix product operation
Options Database Key#
-mat_product_clear - Clear intermediate data structures after
MatProductNumeric()has been called
Notes#
This function should be called to remove any intermediate data used to compute the matrix to free up memory.
After having called this function, matrix-matrix product operations can no longer be used on mat
Developer Note#
This frees the Mat_Product context that was attached to the matrix during MatProductCreate() or MatProductCreateWithMat()
See Also#
Matrices, MatProduct, Mat, MatProductCreate()
Level#
intermediate
Location#
Examples#
src/mat/tests/ex109.c
src/mat/tests/ex111.c
src/mat/tests/ex195.c
src/mat/tests/ex62.c
src/mat/tests/ex89.c
src/mat/tests/ex94.c
src/mat/tests/ex96.c
src/ksp/ksp/tests/ex62f.F90
src/ksp/ksp/tests/ex90.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages