lapackfix(3)
β¨ lapackfix β the glow-up era of LAPACK π
okay so bestie, we're in the MEPACK manual, section 3, and this page is literally just called lapackfix. it's giving "bugfix delivery service" and honestly? iconic.
πΈ NAME πΈ
lapackfix β Fixed LAPACK routines
- Bugfix versions of LAPACK routines. π
π¦ SYNOPSIS π¦
β¨ Functions β¨
here's the whole squad, one subroutine at a time. no skips, no cuts, we're doing all of them:
subroutine cgetc2x (n, a, lda, ipiv, jpiv, info)CGETC2Xcomputes the LU factorization with complete pivoting of the general n-by-n matrix. πsubroutine dgetc2x (n, a, lda, ipiv, jpiv, info)DGETC2Xcomputes the LU factorization with complete pivoting of the general n-by-n matrix. πsubroutine sgetc2x (n, a, lda, ipiv, jpiv, info)SGETC2computes the LU factorization with complete pivoting of the general n-by-n matrix. πsubroutine zgetc2 (n, a, lda, ipiv, jpiv, info)ZGETC2computes the LU factorization with complete pivoting of the general n-by-n matrix. π
not me noticing the names are almost a matching set but not quite. we are NOT fixing that, we are reporting it exactly as it is. the facts do not move, periodt. π
π Detailed Description π
Bugfix versions of LAPACK routines. β¨
so here's the tea. During the development of MEPACK, some LAPACK routines show some bugs since they are used differently in MEPACK than in LAPACK. π«
Therefore, MEPACK comes with patched version of this routines in order to avoid bugs. π©Ή
Newer LAPACK versions include the bugfixes as well but we do not rely on this. π
bestie listen: this is the whole reason this page exists. MEPACK said "we're not trusting upstream to have our back" and shipped its own patched copies. main character energy fr fr. π
<divider>
okay that's the vibe for this part β more of the page is still loading, so stay with me. π¦
π FUNCTION DOCUMENTATION π
Okay bestie, buckle up, because this is the part where we meet the whole squad β four little subroutines that all do the same iconique thing but for different number flavors. Same energy, different data types. Let's go π¦
πΈ subroutine cgetc2x πΈ
subroutine cgetc2x (integer n, complex, dimension( lda, * ) a, integer lda,
integer, dimension( * ) ipiv, integer, dimension( * ) jpiv, integer
info)
CGETC2X computes the LU factorization with complete pivoting of the general n-by-n matrix. π
β¨ Purpose β¨
CGETC2 computes an LU factorization, using complete pivoting, of the n-by-n matrix A. The factorization has the form A = P * L * U * Q, where P and Q are permutation matrices, L is lower triangular with unit diagonal elements and U is upper triangular. π
This routine contains a fixed version of the forward/backward substitution if an old version of LAPACK is used. π
This is a level 1 BLAS version of the algorithm. β
π Parameters π
NβNisINTEGER. The order of the matrix A.N >= 0. π«ΆAβAisCOMPLEXarray, dimension(LDA, N). On entry, the n-by-n matrix to be factored. On exit, the factors L and U from the factorizationA = P*L*U*Q; the unit diagonal elements of L are not stored. IfU(k, k)appears to be less thanSMIN,U(k, k)is given the value ofSMIN, giving a non singular perturbed system. πLDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1, N). πIPIVβIPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= i <= N, row i of the matrix has been interchanged with rowIPIV(i). π₯JPIVβJPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= j <= N, column j of the matrix has been interchanged with columnJPIV(j). π₯INFOβINFOisINTEGER.== 0: successful exit β¨> 0: ifINFO = k,U(k, k)is likely to produce overflow if one tries to solve for x inAx = b. So U is perturbed to avoid the overflow. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Date π
October 2025
π§ Contributors π§
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
Definition at line 115 of file cgetc2x.f90. πΈ
π¦ subroutine dgetc2x π¦
subroutine dgetc2x (integer n, double precision, dimension( lda, * ) a,
integer lda, integer, dimension( * ) ipiv, integer, dimension( * ) jpiv,
integer info)
DGETC2X computes the LU factorization with complete pivoting of the general n-by-n matrix. π
β¨ Purpose β¨
DGETC2 computes an LU factorization with complete pivoting of the n-by-n matrix A. The factorization has the form A = P * L * U * Q, where P and Q are permutation matrices, L is lower triangular with unit diagonal elements and U is upper triangular. π
This routine contains a fixed version of the forward/backward substitution if an old version of LAPACK is used. π
This is the Level 2 BLAS algorithm. β
π Parameters π
NβNisINTEGER. The order of the matrix A.N >= 0. π«ΆAβAisDOUBLE PRECISIONarray, dimension(LDA, N). On entry, the n-by-n matrix A to be factored. On exit, the factors L and U from the factorizationA = P*L*U*Q; the unit diagonal elements of L are not stored. IfU(k, k)appears to be less thanSMIN,U(k, k)is given the value ofSMIN, i.e., giving a non singular perturbed system. πLDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1,N). πIPIVβIPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= i <= N, row i of the matrix has been interchanged with rowIPIV(i). π₯JPIVβJPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= j <= N, column j of the matrix has been interchanged with columnJPIV(j). π₯INFOβINFOisINTEGER.== 0: successful exit β¨> 0: ifINFO = k,U(k, k)is likely to produce overflow if we try to solve for x inAx = b. So U is perturbed to avoid the overflow. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Date π
October 2025
π§ Contributors π§
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
Definition at line 115 of file dgetc2x.f90. π¦
πΈ subroutine sgetc2x πΈ
subroutine sgetc2x (integer n, real, dimension( lda, * ) a, integer lda,
integer, dimension( * ) ipiv, integer, dimension( * ) jpiv, integer
info)
SGETC2 computes the LU factorization with complete pivoting of the general n-by-n matrix. π
β¨ Purpose β¨
SGETC2 computes an LU factorization with complete pivoting of the n-by-n matrix A. The factorization has the form A = P * L * U * Q, where P and Q are permutation matrices, L is lower triangular with unit diagonal elements and U is upper triangular. π
This routine contains a fixed version of the forward/backward substitution if an old version of LAPACK is used. π
This is the Level 2 BLAS algorithm. β
π Parameters π
NβNisINTEGER. The order of the matrix A.N >= 0. π«ΆAβAisREALarray, dimension(LDA, N). On entry, the n-by-n matrix A to be factored. On exit, the factors L and U from the factorizationA = P*L*U*Q; the unit diagonal elements of L are not stored. IfU(k, k)appears to be less thanSMIN,U(k, k)is given the value ofSMIN, i.e., giving a non singular perturbed system. πLDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1,N). πIPIVβIPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= i <= N, row i of the matrix has been interchanged with rowIPIV(i). π₯JPIVβJPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= j <= N, column j of the matrix has been interchanged with columnJPIV(j). π₯INFOβINFOisINTEGER.== 0: successful exit β¨> 0: ifINFO = k,U(k, k)is likely to produce overflow if we try to solve for x inAx = b. So U is perturbed to avoid the overflow. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Date π
October 2025
π§ Contributors π§
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
Definition at line 115 of file sgetc2x.f90. πΈ
π¦ subroutine zgetc2 π¦
subroutine zgetc2 (integer n, complex(kind=kind(1.0d0)), dimension( lda, * )
a, integer lda, integer, dimension( * ) ipiv, integer, dimension( * )
jpiv, integer info)
ZGETC2 computes the LU factorization with complete pivoting of the general n-by-n matrix. π
β¨ Purpose β¨
ZGETC2 computes an LU factorization, using complete pivoting, of the n-by-n matrix A. The factorization has the form A = P * L * U * Q, where P and Q are permutation matrices, L is lower triangular with unit diagonal elements and U is upper triangular. π
This routine contains a fixed version of the forward/backward substitution if an old version of LAPACK is used. π
This is a level 1 BLAS version of the algorithm. β
π Parameters π
NβNisINTEGER. The order of the matrix A.N >= 0. π«ΆAβAisCOMPLEX*16array, dimension(LDA, N). On entry, the n-by-n matrix to be factored. On exit, the factors L and U from the factorizationA = P*L*U*Q; the unit diagonal elements of L are not stored. IfU(k, k)appears to be less thanSMIN,U(k, k)is given the value ofSMIN, giving a non singular perturbed system. πLDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1, N). πIPIVβIPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= i <= N, row i of the matrix has been interchanged with rowIPIV(i). π₯JPIVβJPIVisINTEGERarray, dimension(N). The pivot indices; for1 <= j <= N, column j of the matrix has been interchanged with columnJPIV(j). π₯INFOβINFOisINTEGER.== 0: successful exit β¨> 0: ifINFO = k,U(k, k)is likely to produce overflow if one tries to solve for x inAx = b. So U is perturbed to avoid the overflow. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Date π
October 2025
π§ Contributors π§
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
Definition at line 115 of file zgetc2x.f90. π¦
π AUTHOR π
Generated automatically by Doxygen for MEPACK from the source code. π€β¨ (not me being obsessed with auto-generated docs, it's giving effortless)
okay that's the whole page bestie!! this is Version 1.1.2, dated Thu Oct 9 2025 00:00:00, and you've been reading lapackfix(3) π go forth and pivot completely, no cap π«Άβ¨
π¦ where this page comes from
- fedora 43: mepack-devel 1.1.2-1.fc43 Β· GPL-3.0-or-later and LGPL-2.1-or-later and BSD-3-Clause
- fedora 43: mepack-devel 1.1.2-1.fc43 Β· GPL-3.0-or-later and LGPL-2.1-or-later and BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms