VecReplaceArray
Allows one to replace the array in a vector with an array provided by the user. This is useful to avoid copying an array into a vector. FOR EXPERTS ONLY!
Synopsis
int VecReplaceArray(Vec vec,const Scalar array[])
Not Collective
Input Parameters
vec | - the vector
|
array | - the array
|
Notes
This permanently replaces the array and frees the memory associated
with the old array.
Not supported from Fortran
See Also
VecGetArray(), VecRestoreArray(), VecPlaceArray()
Keywords
vec, place, array
Level:developer
Location:src/vec/interface/vector.c
Vector Index
Table of Contents