MatGetVecs

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

Synopsis

#include "petscmat.h" 
PetscErrorCode PETSCMAT_DLLEXPORT MatGetVecs(Mat mat,Vec *right,Vec *left)
Collective on Mat

Input Parameter

mat -the matrix

Output Parameter

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

See Also

MatCreate()

Level:advanced
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages