MatShift

Computes Y = Y + a I, where a is a PetscScalar and I is the identity matrix.

Synopsis

#include "petscmat.h"  
int MatShift(PetscScalar *a,Mat Y)
Collective on Mat

Input Parameters

Y - the matrices
a - the PetscScalar

Keywords

matrix, add, shift

See Also

MatDiagonalSet()

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