# SlepcVecMAXPBY

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

### Synopsis

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

Logically 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

If x are Vec's with contiguous storage, then the operation is done through a call to BLAS. Otherwise, VecMAXPY() is called.

### See Also

SlepcVecSetTemplate()

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