MatCreateVecsEmpty — SLEPc 3.25.0 documentation

Skip to main content
`Ctrl`+`K`

# MatCreateVecsEmpty

Get vector(s) compatible with the matrix, i.e., with the same parallel layout, but without internal array.

## Synopsis

    #include "slepcsys.h"
    PetscErrorCode MatCreateVecsEmpty(Mat mat,Vec *right,Vec *left)

Collective

## Input Parameter

- mat - the matrix

## Output Parameters

- right - (optional) vector that the matrix can be multiplied against

- left - (optional) vector that the matrix vector product can be stored in

## Note

This is similar to `MatCreateVecs()`, but the new vectors do not have an internal array, so the intended usage is with `VecPlaceArray()`.

## See Also

`MatCreateVecs()`, `VecDuplicateEmpty()`

## Level

developer

## Location

src/sys/mat/matutil.c

Index of all Sys routines Table of Contents for all manual pages Index of all manual pages