:orphan: # 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` ## See Also [](ch_matrices), `MatProduct`, `Mat`, `MatProductCreate()` ## Level intermediate ## Location src/mat/interface/matproduct.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matproduct.c) [Index of all Mat routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)