XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ daxpy()

void daxpy ( int  n,
double  a,
double  x[],
int  incx,
double  y[],
int  incy 
)

y <- ax + y (BLAS 1)

Purpose
This routine computes the constant times a vector plus a vector.
Parameters
[in]nNumber of elements in vectors x and y. (If n <= 0, returns without computation)
[in]aScalar a.
[in]x[]Array x[lx] (lx >= 1 + (n - 1)*abs(incx))
Input vector x.
[in]incxStorage spacing between elements of x.
[in,out]y[]Array y[ly] (ly >= 1 + (n - 1)*abs(incy))
[in] Input vector y
[out] Output vector (= ax + y)
[in]incyStorage spacing between elements of y.
Reference
BLAS