VecSetValue

Set a single entry into a vector.

Synopsis

void VecSetValue(Vec v,int row,Scalar value, InsertMode mode);
Not Collective

Input Parameters

v - the vector
row - the row location of the entry
value - the value to insert
mode - either INSERT_VALUES or ADD_VALUES

Notes

For efficiency one should use VecSetValues() and set several ormany values simultaneously if possible.

See Also

VecSetValues()

Location: src/vec/interface/vector.c
Vector Index
Table of Contents