# SlepcVecSetTemplate

Sets a vector as a template for contiguous storage.

### Synopsis

    #include "slepcvec.h"
    #include "petscvec.h"
    PetscErrorCode SlepcVecSetTemplate(Vec v)

Collective on Vec

### Input Parameters

v - the vector

### Note

Once this function is called, subsequent calls to VecDuplicateVecs() with this vector will use a special version that generates vectors with contiguous storage, that is, the array of values of V[1] immediately follows the array of V[0], and so on.

Location: src/vec/contiguous.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages