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
iis swapped with rowpiv[i]for eachifrom 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.
pivmust holdk1 + 1 + (k2 - k1) * abs(inc) + offentries, which forabs(inc) > 1is 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.