petsc-3.11.4 2019-09-28
VecAXPBYPCZ
Computes z = alpha x + beta y + gamma z
Synopsis
#include "petscvec.h"
PetscErrorCode VecAXPBYPCZ(Vec z,PetscScalar alpha,PetscScalar beta,PetscScalar gamma,Vec x,Vec y)
Logically Collective on Vec
Input Parameters
| alpha,beta, gamma | - the scalars
|
| x, y, z | - the vectors
|
Output Parameter
z -output vector
Notes
x, y and z must be different vectors
Developer Note: alpha = 1 or gamma = 1 or gamma = 0.0 are handled as special cases
See Also
VecAYPX(), VecMAXPY(), VecWAXPY(), VecAXPY()
Level
intermediate
Location
src/vec/vec/interface/rvector.c
Implementations
VecAXPBYPCZ_Nest in src/vec/vec/impls/nest/vecnest.c
VecAXPBYPCZ_Node in src/vec/vec/impls/node/vecnode.c
VecAXPBYPCZ_Seq in src/vec/vec/impls/seq/bvec1.c
VecAXPBYPCZ_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda2.cu
VecAXPBYPCZ_SeqViennaCL in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages