VecsCreateSeqWithArray#
Creates a Vecs object holding p sequential Vecs of length m that use a user-provided contiguous array as storage
Synopsis#
PetscErrorCode VecsCreateSeqWithArray(MPI_Comm comm, PetscInt p, PetscInt m, PetscScalar *a, Vecs *x)
Collective
Input Parameters#
comm - the MPI communicator (typically
PETSC_COMM_SELF)p - the number of vectors
m - the length of each vector
a - the array of length
p*mused as storage for the vectors
Output Parameter#
x - the newly created
Vecs
See Also#
Vecs, VecsCreateSeq(), VecsDuplicate(), VecsDestroy(), VecCreateSeqWithArray()
Level#
advanced
Location#
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages