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

◆ dscal()

void dscal ( int  n,
double  a,
double  x[],
int  incx 
)

x <- ax (BLAS 1)

Purpose
This routine scales a vector by a constant.
Parameters
[in]nNumber of elements in input vector. (if n <= 0, returns without computation)
[in]aScalar a.
[in,out]x[]Array x[lx] (lx >= 1 + (n - 1)*incx)
[in] Input vector x.
[out] Scaled vector. (= ax)
[in]incxStorage spacing between elements of x. (If incx <= 0, returns without computation)
Reference
BLAS