Skip to main content
`Ctrl`+`K`

# INSERT_VALUES

Put a value into a vector or matrix, overwrites any previous value

## See Also

`InsertMode`, `VecSetValues()`, `MatSetValues()`, `VecSetValue()`, `VecSetValuesBlocked()`, `VecSetValuesLocal()`, `VecSetValuesBlockedLocal()`, `MatSetValuesBlocked()`, `ADD_VALUES`, `MatSetValuesBlockedLocal()`, `MatSetValuesLocal()`, `VecScatterBegin()`, `VecScatterEnd()`, `MAX_VALUES`

## Level

beginner

## Location

include/petscsystypes.h

## Examples

src/dm/impls/plex/tutorials/ex6.c
src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/impls/stag/tutorials/ex3.c
src/dm/impls/stag/tutorials/ex2.c
src/dm/impls/stag/tutorials/ex6.c

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