VecCreateCompWithVecs — SLEPc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# VecCreateCompWithVecs

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

## Synopsis

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

Collective

## Input Parameters

- x - array of `Vec`s

- 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