1 /*  trvec.c    CCMATH mathematics library source code.
2  *
3  *  Copyright (C)  2000   Daniel A. Atkinson    All rights reserved.
4  *  This code may be redistributed under the terms of the GNU library
5  *  public license (LGPL). ( See the lgpl.license file for details.)
6  * ------------------------------------------------------------------------
7  */
trvec(double * c,double * a,double * b,int n)8 void trvec(double *c,double *a,double *b,int n)
9 { double *mx;
10   for(mx=c+n; c<mx ;) *c++ = *a++ + *b++;
11 }
12