naginterfaces.library.blas.dswap

naginterfaces.library.blas.dswap(x, y)[source]

dswap interchanges two -element real vectors and .

For full information please refer to the NAG Library document for f06eg

https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f06/f06egf.html

Parameters
xfloat, array-like, shape

The -element vector .

yfloat, array-like, shape

The -element vector .

Returns
xfloat, ndarray, shape

The original vector .

yfloat, ndarray, shape

The original vector .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

dswap interchanges the elements of real vectors and .

References

Lawson, C L, Hanson, R J, Kincaid, D R and Krogh, F T, 1979, Basic linear algebra supbrograms for Fortran usage, ACM Trans. Math. Software (5), 308–325