MatRestrict#

y = A*x or A’*x

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatRestrict(Mat A, Vec x, Vec y)

Neighbor-wise Collective on Mat

Input Parameters#

  • mat - the matrix

  • x,y - the vectors

Note#

This allows one to use either the restriction or interpolation (its transpose) matrix to do the restriction

See Also#

Mat, MatMultAdd(), MatMultTransposeAdd(), MatInterpolate(), PCMG

Level#

intermediate

Location#

src/mat/interface/matrix.c

Examples#

src/ts/tutorials/ex29.c.html


Edit on GitLab

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