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 / _flapack / slaswp

lapack_function

scipy.linalg._flapack:slaswp

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

Summary

Apply a sequence of row interchanges to a matrix (LAPACK slaswp).

Extended Summary

Row i is swapped with row piv[i] for each i from k1 to k2.

Parameters

a : ndarray

Matrix whose rows are interchanged.

piv : ndarray

Pivot indices, 0-based, at most a.shape[0] of them. LAPACK numbers these from 1; the shift happens inside the wrapper and the array passed in is not modified.

k1 : int, optional

First index of piv to apply, 0-based. Default is 0.

k2 : int, optional

Last index of piv to apply, 0-based. Default is len(piv) - 1.

off : int, optional

Number of leading entries of piv to skip. Default is 0.

inc : int, optional

Stride through piv; negative applies the interchanges in reverse order. piv must hold k1 + 1 + (k2 - k1) * abs(inc) + off entries, which for abs(inc) > 1 is more than k2 alone requires. Default is 1.

overwrite_a : int, optional

If nonzero, a may be overwritten in place. Default is 0.

Returns

a : ndarray

The matrix with its rows interchanged.

Aliases

  • scipy.linalg._flapack.slaswp