MatAYPX#

Computes Y = a*Y + X.

Synopsis#

#include "petscmat.h"  
PetscErrorCode MatAYPX(Mat Y, PetscScalar a, Mat X, MatStructure str)

Logically Collective

Input Parameters#

See Also#

Matrices, Mat, MatAXPY()

Level#

intermediate

Location#

src/mat/utils/axpy.c

Examples#

src/ksp/ksp/tutorials/ex76.c
src/ksp/ksp/tutorials/ex77f.F90
src/ksp/ksp/tutorials/ex77.c


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