VecCreateSeqWithArray
Creates a standard, sequential array-style vector, where the user provides the array space to store the vector values.
Synopsis
int VecCreateSeqWithArray(MPI_Comm comm,int n,Scalar *array,Vec *V)
Collective on
MPI_Comm
Input Parameter
comm | - the communicator, should be PETSC_COMM_SELF
|
n | - the vector length
|
array | - memory where the vector elements are to be stored.
|
Output Parameter
V -the vector
Notes
Use VecDuplicate() or VecDuplicateVecs() to form additional vectors of
thesame type as an existing vector.
Keywords
vector, sequential, create, BLAS
See Also
VecCreateMPI(), VecCreate(), VecDuplicate(), VecDuplicateVecs(),
VecCreateGhost(), VecCreateSeq()
Location: src/vec/impls/seq/bvec2.c
Vector Index
Table of Contents