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

◆ Dswap()

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

y <-> x (BLAS 1)

Purpose
This routine interchanges two vectors.
Parameters
[in]NNumber of elements in vectors x and y. (If N <= 0, returns without computation)
[in,out]X_IAn element X(I) of the array X().
[in] Starting from this location, vector x is stored with element spacing IncX.
[out] Starting from this location, vector y 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, vector x 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