petsc-3.12.5 2020-03-29
VecZeroEntries
puts a 0.0 in each element of a vector
Synopsis
#include "petscvec.h"
PetscErrorCode VecZeroEntries(Vec vec)
Logically Collective on Vec
Input Parameter
vec -The vector
Developer Note: This routine does not need to exist since the exact functionality is obtained with
VecSet(vec,0); I guess someone added it to mirror the functionality of MatZeroEntries() but Mat is nothing
like a Vec (one is an operator and one is an element of a vector space, yeah yeah dual blah blah blah) so
this routine should not exist.
See Also
VecCreate(), VecSetOptionsPrefix(), VecSet(), VecSetValues()
Level
beginner
Location
src/vec/vec/interface/vector.c
Examples
src/ksp/ksp/examples/tutorials/ex42.c.html
src/ksp/ksp/examples/tutorials/ex43.c.html
src/ksp/ksp/examples/tutorials/ex49.c.html
src/ksp/ksp/examples/tutorials/ex56.c.html
src/ksp/ksp/examples/tutorials/ex69.c.html
src/ksp/ksp/examples/tutorials/ex70.c.html
src/ksp/ksp/examples/tutorials/ex71.c.html
src/snes/examples/tutorials/ex28.c.html
src/snes/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex73f90t.F90.html
src/ts/examples/tutorials/ex9.c.html
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages