This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _fblas / dswap

blas_function

scipy.linalg._fblas:dswap

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_fblas.cpython-314-x86_64-linux-gnu.so

Signature

def dswap(x, y, n = None, offx = 0, incx = 1, offy = 0, incy = 1)

Summary

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

Parameters

x : ndarray

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

y : ndarray

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

n : int, optional

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

offx : int, optional

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

incx : int, optional

Stride between successive elements of x. Default is 1.

offy : int, optional

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

incy : int, optional

Stride between successive elements of y. Default is 1.

Returns

x : ndarray

The vector x after the swap.

y : ndarray

The vector y after the swap.

Aliases

  • scipy.linalg._fblas.dswap