petsc-3.5.4 2015-05-23
Report Typos and Errors

MatMult

Computes the matrix-vector product, y = Ax.

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatMult(Mat mat,Vec x,Vec y)
Neighbor-wise Collective on Mat and Vec

Input Parameters

mat - the matrix
x - the vector to be multiplied

Output Parameters

y -the result

Notes

The vectors x and y cannot be the same. I.e., one cannot call MatMult(A,y,y).

See Also

MatMultTranspose(), MatMultAdd(), MatMultTransposeAdd()

Level:beginner
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/mat/examples/tutorials/ex2.c.html
src/mat/examples/tutorials/ex4.c.html
src/mat/examples/tutorials/ex9.c.html
src/ksp/ksp/examples/tutorials/ex1.c.html
src/ksp/ksp/examples/tutorials/ex2.c.html
src/ksp/ksp/examples/tutorials/ex5.c.html
src/ksp/ksp/examples/tutorials/ex7.c.html
src/ksp/ksp/examples/tutorials/ex8.c.html
src/ksp/ksp/examples/tutorials/ex8g.c.html
src/ksp/ksp/examples/tutorials/ex9.c.html
src/ksp/ksp/examples/tutorials/ex10.c.html