SRC/zlaswp.f(3)
๐ SRC/zlaswp.f(3) โ Library Functions Manual
okay so bestie, we're in the SRC/zlaswp.f(3) part of the manual, which lives in the Library Functions Manual section, and honestly? this one's a little legend.
โจ NAME โจ
SRC/zlaswp.f โ no cap, that's the file. it's the Fortran source, and it's bringing main character energy to your matrix.
๐ธ SYNOPSIS ๐ธ
Functions/Subroutines
subroutine zlaswp (n, a, lda, k1, k2, ipiv, incx)โ ZLASWP performs a series of row interchanges on a general rectangular matrix. like, it's rearranging your rows and it's slaying while doing it ๐
๐ฆ Function/Subroutine Documentation ๐ฆ
subroutine zlaswp (integer n, complex*16, dimension( lda, * ) a, integer lda, integer k1, integer k2, integer, dimension( * ) ipiv, integer incx)
ZLASWP performs a series of row interchanges on a general rectangular matrix. that's it, that's the vibe โจ
๐ Purpose:
!>
!> ZLASWP performs a series of row interchanges on the matrix A.
!> One row interchange is initiated for each of rows K1 through K2 of A.
!>
so bestie, it does row swaps on the matrix A, and you get exactly one interchange per row, for every row from K1 through K2. one swap each, no skipping, no extras, periodt ๐
๐ Parameters
N
!> N is INTEGER
!> The number of columns of the matrix A.
!>
it's an INTEGER and it's literally the number of columns of the matrix A. that's the whole job. iconic of it tbh ๐ธ
A
!> A is COMPLEX*16 array, dimension (LDA,N)
!> On entry, the matrix of column dimension N to which the row
!> interchanges will be applied.
!> On exit, the permuted matrix.
!>
a COMPLEX*16 array with dimension (LDA,N). on entry it's your matrix, column dimension N, the one the row interchanges are getting applied to. on exit? it's the permuted matrix. so yeah, it comes out changed, don't act surprised ๐
LDA
!> LDA is INTEGER
!> The leading dimension of the array A.
!>
an INTEGER โ the leading dimension of the array A. classic LDA behavior, you know her ๐
K1
!> K1 is INTEGER
!> The first element of IPIV for which a row interchange will
!> be done.
!>
an INTEGER, and it's the first element of IPIV that actually gets a row interchange. like, the starting point of the whole operation โจ
K2
!> K2 is INTEGER
!> (K2-K1+1) is the number of elements of IPIV for which a row
!> interchange will be done.
!>
an INTEGER, and (K2-K1+1) is how many elements of IPIV get a row interchange done to them. the math is mathing ๐งฎ
IPIV
!> IPIV is INTEGER array, dimension (K1+(K2-K1)*abs(INCX))
!> The vector of pivot indices. Only the elements in positions
!> K1 through K1+(K2-K1)*abs(INCX) of IPIV are accessed.
!> IPIV(K1+(K-K1)*abs(INCX)) = L implies rows K and L are to be
!> interchanged.
!>
an INTEGER array with dimension (K1+(K2-K1)*abs(INCX)). it's the vector of pivot indices. important: only the elements in positions K1 through K1+(K2-K1)*abs(INCX) of IPIV are accessed โ nothing outside that window, so don't go poking around elsewhere.
and here's the tea: IPIV(K1+(K-K1)*abs(INCX)) = L means rows K and L are the ones getting interchanged. iykyk ๐ฅ
INCX
!> INCX is INTEGER
!> The increment between successive values of IPIV. If INCX
!> is negative, the pivots are applied in reverse order.
!>
an INTEGER โ the increment between successive values of IPIV. and heads up bestie: if INCX is negative, the pivots are applied in reverse order. so the sign here genuinely matters, it's giving plot twist ๐ญ
๐ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad showed up for this one ๐ซถ
โญ Further Details:
!>
!> Modified by
!> R. C. Whaley, Computer Science Dept., Univ. of Tenn., Knoxville, USA
!>
shoutout to R. C. Whaley, Computer Science Dept., Univ. of Tenn., Knoxville, USA โ modified by them, and we respect it ๐
Definition at line 114 of file zlaswp.f. โ yes, line 114, go look ๐
๐ธ Author
Generated automatically by Doxygen for LAPACK from the source code. so no human wrote this blurb, the robot did it for us, and honestly? slay ๐ค๐
anyway that's the whole page, bestie โ LAPACK Version 3.12.0, from SRC/zlaswp.f(3). go forth and swap those rows ๐
โจ๐
๐ฆ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 ยท custom
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms