MatProductClear#

Clears matrix product internal datastructures.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatProductClear(Mat mat)

Collective

Input Parameters#

  • mat - the product matrix

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 operations can no longer be used on mat

See Also#

Mat, MatProductCreate()

Level#

intermediate

Location#

src/mat/interface/matproduct.c


Edit on GitLab

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