slepc-3.18.0 2022-10-01
Report Typos and Errors

# VecCreateCompWithVecs

Creates a new vector containing several subvectors, each stored separately, from an array of Vecs.

### Synopsis

    #include "slepcvec.h"
    PetscErrorCode VecCreateCompWithVecs(Vec *x,PetscInt n,Vec Vparent,Vec *V)

Collective on x

### Input Parameters

| x | - array of Vecs
| n | - number of child vectors
| Vparent | - (optional) template vector

### Output Parameter

| V | - new vector

### See Also

VecCreateComp()

### Level

developer

### Location

src/sys/vec/veccomp.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages