petsc-3.7.1 2016-05-15
Report Typos and Errors

VecChop

Set all values in the vector with an absolute value less than the tolerance to zero

Synopsis

#include "petscvec.h"  
PetscErrorCode VecChop(Vec v, PetscReal tol)

Input Parameters

v - The vector Many br
tol - The zero tolerance Many br

Output Parameters

v -The chopped vector Many br

Many br

See Also

VecCreate(), VecSet()

Level:intermediate
Location:
src/vec/vec/utils/vecio.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex62.c.html
src/snes/examples/tutorials/ex77.c.html