XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Daxpy()

Sub Daxpy ( N As  Long,
A As  Double,
X_I As  Double,
Y_I As  Double,
Optional IncX As  Long = 1,
Optional IncY As  Long = 1 
)

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_IAn element X(I) of the array X(). Starting from this location, vector x is stored with element spacing IncX.
[in,out]Y_IAn element Y(I) of the array Y().
[in] Starting from this location, vector y is stored with element spacing IncY.
[out] Starting from this location, ax + y is stored with element spacing IncY.
[in]IncX(Optional)
Element spacing of vector x in the array X(). (default = 1)
[in]IncY(Optional)
Element spacing of vector y in the array Y(). (default = 1)
Reference
BLAS