slepc-3.16.1 2021-11-17
Report Typos and Errors


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


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

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


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

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