petsc-3.4.5 2014-06-29

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

Notes

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

See Also

MatMultAdd(), MatMultTransposeAdd(), MatInterpolate()

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

Examples

src/dm/examples/tutorials/ex65dm.c.html