scipy.linalg.lapack.dlaswp#

scipy.linalg.lapack.dlaswp(a, piv, k1=0, k2=len(piv) - 1, off=0, inc=1, overwrite_a=0) = <flapack function dlaswp>#

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

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

Parameters:
andarray

Matrix whose rows are interchanged.

pivndarray

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.

k1int, optional

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

k2int, optional

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

offint, optional

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

incint, 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_aint, optional

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

Returns:
andarray

The matrix with its rows interchanged.