SlepcVecMAXPBY

Computes y = beta*y + sum alpha*a[j]*x[j]

Synopsis

#include "slepcsys.h" 
PetscErrorCode SlepcVecMAXPBY(Vec y,PetscScalar beta,PetscScalar alpha,PetscInt nv,PetscScalar a[],Vec x[])
Collective on Vec

Input parameters

beta - scalar beta
alpha - scalar alpha
nv - number of vectors in x and scalars in a
a - array of scalars
x - set of vectors

Input/Output parameter

y - the vector to update

Notes

This routine is implemented with a call to BLAS, therefore x is an array of Vec which have the data stored contiguously in memory as a Fortran matrix. PETSc does not create such arrays by default.

Location: src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages