petsc-3.9.4 2018-09-11
Report Typos and Errors

MatMultAdd

Computes v3 = v2 + A * v1.

Synopsis

#include "petscmat.h" 
PetscErrorCode MatMultAdd(Mat mat,Vec v1,Vec v2,Vec v3)
Neighbor-wise Collective on Mat and Vec

Input Parameters

mat - the matrix
v1, v2 - the vectors

Output Parameters

v3 -the result

Notes

The vectors v1 and v3 cannot be the same. I.e., one cannot call MatMultAdd(A,v1,v2,v1).

See Also

MatMultTranspose(), MatMult(), 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/snes/examples/tutorials/ex70.c.html
src/snes/examples/tutorials/ex73f90t.F90.html
src/ts/examples/tutorials/ex50.c.html

Implementations

MatMultAdd_ML in src/ksp/pc/impls/ml/ml.c
MatMultAdd_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatMultAdd_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatMultAdd_SeqAIJMKL in src/mat/impls/aij/seq/aijmkl/aijmkl.c
MatMultAdd_SeqAIJMKL_SpMV2 in src/mat/impls/aij/seq/aijmkl/aijmkl.c
MatMultAdd_SeqAIJPERM in src/mat/impls/aij/seq/aijperm/aijperm.c
MatMultAdd_SeqAIJ_Inode in src/mat/impls/aij/seq/inode.c
MatMultAdd_SeqAIJCUSPARSE in src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
MatMultAdd_SeqAIJViennaCL in src/mat/impls/aij/seq/seqviennacl/aijviennacl.cxx
MatMultAdd_MPIBAIJ in src/mat/impls/baij/mpi/mpibaij.c
MatMultAdd_SeqBAIJ_1 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_2 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_3 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_4 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_5 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_6 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_7 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_9_AVX2 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_11 in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJ_N in src/mat/impls/baij/seq/baij2.c
MatMultAdd_SeqBAIJMKL_SpMV2 in src/mat/impls/baij/seq/baijmkl/baijmkl.c
MatMultAdd_BlockMat in src/mat/impls/blockmat/seq/blockmat.c
MatMultAdd_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatMultAdd_SeqDense in src/mat/impls/dense/seq/dense.c
MatMultAdd_Elemental in src/mat/impls/elemental/matelem.cxx
MatMultAdd_IS in src/mat/impls/is/matis.c
MatMultAdd_SeqMAIJ_2 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_3 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_4 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_5 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_6 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_7 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_8 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_9 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_10 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_11 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_16 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_18 in src/mat/impls/maij/maij.c
MatMultAdd_SeqMAIJ_N in src/mat/impls/maij/maij.c
MatMultAdd_MPIMAIJ_dof in src/mat/impls/maij/maij.c
MatMultAdd_Nest in src/mat/impls/nest/matnest.c
MatMultAdd_Normal in src/mat/impls/normal/normm.c
MatMultAdd_MPISBAIJ in src/mat/impls/sbaij/mpi/mpisbaij.c
MatMultAdd_MPISBAIJ_2comm in src/mat/impls/sbaij/mpi/mpisbaij.c
MatMultAdd_SeqSBAIJ_1 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_2 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_3 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_4 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_5 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_6 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_7 in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_SeqSBAIJ_N in src/mat/impls/sbaij/seq/sbaij2.c
MatMultAdd_Scatter in src/mat/impls/scatter/mscatter.c
MatMultAdd_MPISELL in src/mat/impls/sell/mpi/mpisell.c
MatMultAdd_SeqSELL in src/mat/impls/sell/seq/sell.c
MatMultAdd_Shell in src/mat/impls/shell/shell.c
MatMultAdd_SubMatrix in src/mat/impls/submat/submat.c
MatMultAdd_HT in src/mat/impls/transpose/htransm.c
MatMultAdd_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