Adding/subtracting vectors

John R. Wicks jwicks at cs.brown.edu
Sun Aug 12 18:57:26 CDT 2007


It seems that the only way to add two vectors is to use VecAXPY(x,1,y);
likewise, to subtract one must call VecAXPY(x,-1,y).  Are these routines
optimized to recognize these special cases to avoid the extraneous scalar
multiplications?




More information about the petsc-users mailing list