petsc-3.13.6 2020-09-29
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

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/tutorials/ex2.c.html
src/mat/tutorials/ex9.c.html
src/ksp/ksp/tutorials/ex74.c.html
src/snes/tutorials/ex70.c.html
src/snes/tutorials/ex73f90t.F90.html
src/ts/tutorials/ex50.c.html

Implementations

MatMultAdd_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatMultAdd_MPIAIJCUSPARSE in src/mat/impls/aij/mpi/mpicusparse/mpiaijcusparse.cu
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_SeqAIJSELL in src/mat/impls/aij/seq/aijsell/aijsell.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_ConstantDiagonal in src/mat/impls/cdiagonal/cdiagonal.c
MatMultAdd_Composite in src/mat/impls/composite/mcomposite.c
MatMultAdd_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatMultAdd_SeqDenseCUDA in src/mat/impls/dense/seq/cuda/densecuda.cu
MatMultAdd_SeqDense in src/mat/impls/dense/seq/dense.c
MatMultAdd_Elemental in src/mat/impls/elemental/matelem.cxx
MatMultAdd_HYPRE in src/mat/impls/hypre/mhypre.c
MatMultAdd_IS in src/mat/impls/is/matis.c
MatMultAdd_SeqKAIJ in src/mat/impls/kaij/kaij.c
MatMultAdd_MPIKAIJ in src/mat/impls/kaij/kaij.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_Hermitian in src/mat/impls/sbaij/mpi/mpisbaij.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