SRC/cgesc2.f(3)
π NAME π
SRC/cgesc2.f β bestie, this is the page for the cgesc2 subroutine, and no cap, it's a whole vibe β¨
πΈ SYNOPSIS πΈ
π Functions/Subroutines
subroutine cgesc2 (n, a, lda, rhs, ipiv, jpiv, scale)
CGESC2 solves a system of linear equations using the LU factorization with complete pivoting computed by sgetc2. Lowkey iconic π«Ά
β¨ Function/Subroutine Documentation β¨
subroutine cgesc2 (integer n, complex, dimension( lda, * ) a, integer lda,
complex, dimension( * ) rhs, integer, dimension( * ) ipiv, integer,
dimension( * ) jpiv, real scale)
CGESC2 solves a system of linear equations using the LU factorization with complete pivoting computed by sgetc2. Like, that's the whole gig, and she does it well π
π¦ Purpose:
!>!> CGESC2 solves a system of linear equations!>!> A * X = scale* RHS!>!> with a general N-by-N matrix A using the LU factorization with!> complete pivoting computed by CGETC2.!>!>
π Parameters
Nβ okay soNisINTEGERand it's literally the number of columns of the matrixA.
!> N is INTEGER!> The number of columns of the matrix A.!>
AβAis aCOMPLEXarray, dimension(LDA, N). On entry it's holding theLUpart of the factorization of the n-by-n matrixAcomputed byCGETC2:A = P * L * U * Qπ
!> A is COMPLEX array, dimension (LDA, N)!> On entry, the LU part of the factorization of the n-by-n!> matrix A computed by CGETC2: A = P * L * U * Q!>
LDAβLDAisINTEGER, the leading dimension of the arrayA. Rules are rules:LDA >= max(1, N). Periodt.
!> LDA is INTEGER!> The leading dimension of the array A. LDA >= max(1, N).!>
RHSβRHSis aCOMPLEXarray, dimensionN. On entry it's the right hand side vectorb. On exit? It's the solution vectorXβ glow-up moment fr fr β¨
!> RHS is COMPLEX array, dimension N.!> On entry, the right hand side vector b.!> On exit, the solution vector X.!>
IPIVβIPIVisINTEGERarray, dimension(N). These are the pivot indices; for1 <= i <= N, rowiof the matrix has been interchanged with rowIPIV(i).
!> IPIV is INTEGER array, dimension (N).!> The pivot indices; for 1 <= i <= N, row i of the!> matrix has been interchanged with row IPIV(i).!>
JPIVβJPIVisINTEGERarray, dimension(N). Also pivot indices, but for the columns this time: for1 <= j <= N, columnjof the matrix has been interchanged with columnJPIV(j)π
!> JPIV is INTEGER array, dimension (N).!> The pivot indices; for 1 <= j <= N, column j of the!> matrix has been interchanged with column JPIV(j).!>
SCALEβSCALEisREAL. On exit,SCALEcontains the scale factor.SCALEis chosen so that0 <= SCALE <= 1to prevent overflow in the solution β she's out here protecting you from overflow, we stan π‘οΈ
!> SCALE is REAL!> On exit, SCALE contains the scale factor. SCALE is chosen!> 0 <= SCALE <= 1 to prevent overflow in the solution.!>
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π§ Contributors:
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
Definition at line 114 of file cgesc2.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
That's the whole page bestie, no skips, no summarising, we read every line π
LAPACK β Version 3.12.0 β SRC/cgesc2.f(3)
okay that's it, hope this slayed for you πβ¨π¦
π¦ 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