# VecAXPBY

Computes y = alpha x + beta y.

### Synopsis

    #include "petscvec.h"
    int VecAXPBY(const PetscScalar *alpha,const PetscScalar *beta,Vec x,Vec y)

Collective on Vec

### Input Parameters

| alpha,beta | - the scalars
| x, y | - the vectors

### Output Parameter

y -output vector

### See Also

VecAYPX(), VecMAXPY(), VecWAXPY(), VecAXPY()

Level:intermediate
Location: src/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages