MatAXPY

Computes Y = a*X + Y.

Synopsis

#include "petscmat.h"  
int MatAXPY(PetscScalar *a,Mat X,Mat Y,MatStructure str)
Collective on Mat

Input Parameters

a - the scalar multiplier
X - the first matrix
Y - the second matrix
str - either SAME_NONZERO_PATTERN or DIFFERENT_NONZERO_PATTERN

Contributed by: Matthew Knepley

Notes

Will only be efficient if one has the SAME_NONZERO_PATTERN

Keywords

matrix, add

See Also

MatAYPX()

Level:intermediate
Location:
src/mat/utils/axpy.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages