MatAYPX#
Computes Y = a*Y + X.
Synopsis#
#include "petscmat.h"  
PetscErrorCode MatAYPX(Mat Y, PetscScalar a, Mat X, MatStructure str)
Logically Collective
Input Parameters#
- a - the - PetscScalarmultiplier
- Y - the first matrix 
- X - the second matrix 
- str - either - SAME_NONZERO_PATTERN,- DIFFERENT_NONZERO_PATTERN,- UNKNOWN_NONZERO_PATTERN, or- SUBSET_NONZERO_PATTERN(nonzeros of- Xis a subset of- Y’s)
See Also#
Level#
intermediate
Location#
Examples#
src/ksp/ksp/tutorials/ex76.c
src/ksp/ksp/tutorials/ex77.c
src/ksp/ksp/tutorials/ex77f.F90
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages