scipy.linalg.blas.sswap#

scipy.linalg.blas.sswap(x, y, n=None, offx=0, incx=1, offy=0, incy=1) = <fblas function sswap>#

Swap the contents of x and y in place (BLAS sswap).

Parameters:
xndarray

Input/output vector; on exit it holds the original y.

yndarray

Input/output vector; on exit it holds the original x.

nint, optional

Number of elements to process. Default is the whole vector.

offxint, optional

Index of the first element of x to use. Default is 0.

incxint, optional

Stride between successive elements of x. Default is 1.

offyint, optional

Index of the first element of y to use. Default is 0.

incyint, optional

Stride between successive elements of y. Default is 1.

Returns:
xndarray

The vector x after the swap.

yndarray

The vector y after the swap.