petsc-3.10.5 2019-03-28
Report Typos and Errors

MatChop

Set all values in the matrix less than the tolerance to zero

Synopsis

#include "petscmat.h"  
PetscErrorCode MatChop(Mat A, PetscReal tol)

Input Parameters

A - The matrix
tol - The zero tolerance

Output Parameters

A -The chopped matrix

See Also

MatCreate(), MatZeroEntries()

Level

intermediate

Location

src/mat/utils/axpy.c

Examples

src/ksp/ksp/examples/tutorials/ex34.c.html

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