bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / zlaswp
lapack_function
scipy.linalg._flapack:zlaswp
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 zlaswp).
Extended Summary
Row i is swapped with row piv[i] for each i from k1 to k2.
Parameters
a: ndarrayMatrix whose rows are interchanged.
piv: ndarrayPivot 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, optionalFirst index of piv to apply, 0-based. Default is 0.
k2: int, optionalLast index of piv to apply, 0-based. Default is
len(piv) - 1.off: int, optionalNumber of leading entries of piv to skip. Default is 0.
inc: int, optionalStride through piv; negative applies the interchanges in reverse order.
pivmust holdk1 + 1 + (k2 - k1) * abs(inc) + offentries, which forabs(inc) > 1is more than k2 alone requires. Default is 1.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
Returns
a: ndarrayThe matrix with its rows interchanged.
Aliases
scipy.linalg._flapack.zlaswp