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

◆ ddot()

double ddot ( int  n,
double  x[],
int  incx,
double  y[],
int  incy 
)

xT * y (BLAS 1)

Purpose
This routine forms the dot product of two vectors.
Returns
Dot product of vectors x and y (x^T*y).
Parameters
[in]nNumber of elements in vectors x and y. (If n <= 0, returns 0)
[in]x[]Array x[lx] (lx >= 1 + (n - 1)*abs(incx))
Input vector x.
[in]incxStorage spacing between elements of x.
[in]y[]Array y[ly] (ly >= 1 + (n - 1)*abs(incy))
Input vector y.
[in]incyStorage spacing between elements of y.
Reference
BLAS