MatZeroEntries

Zeros all entries of a matrix. For sparse matrices this routine retains the old nonzero structure.

Synopsis

int MatZeroEntries(Mat mat)
Collective on Mat

Input Parameters

mat -the matrix

Keywords

matrix, zero, entries

See Also

MatZeroRows()

Examples

src/sles/examples/tutorials/ex5.c

Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents