SRC/dlapmr.f(3)
π NAME π
SRC/dlapmr.f β this is a Library Functions Manual page, and it's here to explain the DLAPMR subroutine. No cap, it's giving row-permutation energy. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines
subroutine dlapmr (forwrd, m, n, x, ldx, k)βDLAPMRrearranges rows of a matrix as specified by a permutation vector.
πΈ Function/Subroutine Documentation πΈ
π¦ subroutine dlapmr (logical forwrd, integer m, integer n, double precision, dimension( ldx, * ) x, integer ldx, integer, dimension( * ) k)
DLAPMR rearranges rows of a matrix as specified by a permutation vector. That's the whole main character moment, bestie.
β¨ Purpose β¨
Okay so DLAPMR rearranges the rows of the M by N matrix X as specified by the permutation K(1),K(2),...,K(M) of the integers 1,...,M.
If FORWRD = .TRUE., you get a forward permutation:
X(K(I),*) is moved X(I,*) for I = 1,2,...,M.
If FORWRD = .FALSE., you get a backward permutation:
X(I,*) is moved to X(K(I),*) for I = 1,2,...,M.
Translation: the rows get shuffled according toK, andFORWRDpicks which direction the shuffle goes. Iconic.
π Parameters π
FORWRDβ isLOGICAL. Set it to.TRUE.for a forward permutation, or.FALSE.for a backward permutation. Pick your fighter, bestie.Mβ isINTEGER. It's the number of rows of the matrixX. Requirement:M >= 0.Nβ isINTEGER. It's the number of columns of the matrixX. Requirement:N >= 0.Xβ is aDOUBLE PRECISIONarray, dimension(LDX,N). On entry, it's theMbyNmatrixX. On exit,Xcontains the permuted matrixX. Glow-up complete. β¨LDXβ isINTEGER. It's the leading dimension of the arrayX. Requirement:LDX >= MAX(1,M).Kβ is anINTEGERarray, dimension(M). On entry,Kcontains the permutation vector. Here's the tea:Kis used as internal workspace, but it gets reset to its original value on output. So it's not leaving with a new personality. π«Ά
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 103 of file dlapmr.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Cute sign-off: LAPACK β Version 3.12.0 β SRC/dlapmr.f(3). That's the footer, and yes, she ate. ππ
π¦ 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