petsc-3.11.4 2019-09-28
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

Examples

src/mat/examples/tutorials/ex2.c.html
src/mat/examples/tutorials/ex9.c.html
src/ksp/pc/examples/tutorials/ex3.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/ex6.c.html
src/ksp/ksp/examples/tutorials/ex7.c.html
src/ksp/ksp/examples/tutorials/ex8.c.html
src/ksp/ksp/examples/tutorials/ex9.c.html
src/ksp/ksp/examples/tutorials/ex11.c.html

Implementations

MatMult_HYPREStruct in src/dm/impls/da/hypre/mhyp.c
MatMult_HYPRESStruct in src/dm/impls/da/hypre/mhyp.c
MatMult_SeqUSFFT in src/dm/impls/da/usfft/matusfft.c
MatMult_BDdelta_deluxe_nonred in src/ksp/pc/impls/bddc/bddcfetidp.c
MatMult_ML in src/ksp/pc/impls/ml/ml.c
MatMult_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatMult_MPIAIJCUSPARSE in src/mat/impls/aij/mpi/mpicusparse/mpiaijcusparse.cu
MatMult_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatMult_SeqAIJMKL in src/mat/impls/aij/seq/aijmkl/aijmkl.c
MatMult_SeqAIJMKL_SpMV2 in src/mat/impls/aij/seq/aijmkl/aijmkl.c
MatMult_SeqAIJPERM in src/mat/impls/aij/seq/aijperm/aijperm.c
MatMult_SeqAIJSELL in src/mat/impls/aij/seq/aijsell/aijsell.c
MatMult_AIJCRL in src/mat/impls/aij/seq/crl/crl.c
MatMult_SeqAIJ_Inode in src/mat/impls/aij/seq/inode.c
MatMult_SeqAIJCUSPARSE in src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
MatMult_SeqAIJViennaCL in src/mat/impls/aij/seq/seqviennacl/aijviennacl.cxx
MatMult_MPIBAIJ in src/mat/impls/baij/mpi/mpibaij.c
MatMult_SeqBAIJ_1 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_2 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_3 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_4 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_5 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_6 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_7 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_9_AVX2 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_11 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_15_ver1 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_15_ver2 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_15_ver3 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_15_ver4 in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJ_N in src/mat/impls/baij/seq/baij2.c
MatMult_SeqBAIJMKL_SpMV2 in src/mat/impls/baij/seq/baijmkl/baijmkl.c
MatMult_BlockMat in src/mat/impls/blockmat/seq/blockmat.c
MatMult_BlockMat_Symmetric in src/mat/impls/blockmat/seq/blockmat.c
MatMult_Composite_Multiplicative in src/mat/impls/composite/mcomposite.c
MatMult_Composite in src/mat/impls/composite/mcomposite.c
MatMult_SeqCUFFT in src/mat/impls/cufft/cufft.cu
MatMult_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatMult_SeqDense in src/mat/impls/dense/seq/dense.c
MatMult_Elemental in src/mat/impls/elemental/matelem.cxx
MatMult_SeqFFTW in src/mat/impls/fft/fftw/fftw.c
MatMult_MPIFFTW in src/mat/impls/fft/fftw/fftw.c
MatMult_HYPRE in src/mat/impls/hypre/mhypre.c
MatMult_IS in src/mat/impls/is/matis.c
MatMult_LRC in src/mat/impls/lrc/lrc.c
MatMult_SeqMAIJ_2 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_3 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_4 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_5 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_6 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_7 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_8 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_9 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_10 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_11 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_16 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_18 in src/mat/impls/maij/maij.c
MatMult_SeqMAIJ_N in src/mat/impls/maij/maij.c
MatMult_MPIMAIJ_dof in src/mat/impls/maij/maij.c
MatMult_MFFD in src/mat/impls/mffd/mffd.c
MatMult_Nest in src/mat/impls/nest/matnest.c
MatMult_Normal in src/mat/impls/normal/normm.c
MatMult_MPISBAIJ_Hermitian in src/mat/impls/sbaij/mpi/mpisbaij.c
MatMult_MPISBAIJ in src/mat/impls/sbaij/mpi/mpisbaij.c
MatMult_MPISBAIJ_2comm in src/mat/impls/sbaij/mpi/mpisbaij.c
MatMult_SeqSBAIJ_1_Hermitian_ushort in src/mat/impls/sbaij/seq/relax.h
MatMult_SeqSBAIJ_1_Hermitian in src/mat/impls/sbaij/seq/relax.h
MatMult_SeqSBAIJ_1_ushort in src/mat/impls/sbaij/seq/relax.h
MatMult_SeqSBAIJ_1 in src/mat/impls/sbaij/seq/relax.h
MatMult_SeqSBAIJ_2 in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_SeqSBAIJ_3 in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_SeqSBAIJ_4 in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_SeqSBAIJ_5 in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_SeqSBAIJ_6 in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_SeqSBAIJ_7 in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_SeqSBAIJ_N in src/mat/impls/sbaij/seq/sbaij2.c
MatMult_Scatter in src/mat/impls/scatter/mscatter.c
MatMult_MPISELL in src/mat/impls/sell/mpi/mpisell.c
MatMult_SeqSELL in src/mat/impls/sell/seq/sell.c
MatMult_Shell in src/mat/impls/shell/shell.c
MatMult_SubMatrix in src/mat/impls/submat/submat.c
MatMult_HT in src/mat/impls/transpose/htransm.c
MatMult_Transpose in src/mat/impls/transpose/transm.c

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