CGETF2(3)
π cgetf2(3) β Library Functions Manual π
okay bestie, welcome to the cgetf2 page β¨ quick vibe check up top: the file this page documents is literally
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/cgetf2.f
yes that's a whole path, she's long, she's giving build directory realness π
β¨ NAME β¨
cgetf2 β bestie, this is the one that computes the LU factorization of a general m-by-n matrix using partial pivoting with row interchanges (the unblocked algorithm, iykyk π)
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine CGETF2 (m, n, a, lda, ipiv, info)
CGETF2 computes the LU factorization of a general m-by-n matrix using partial pivoting with row interchanges (unblocked algorithm). periodt π«Ά
π¦ Function/Subroutine Documentation π¦
subroutine CGETF2 (integer m, integer n, complex, dimension( lda, * ) a,
integer lda, integer, dimension( * ) ipiv, integer info)
CGETF2 computes the LU factorization of a general m-by-n matrix using partial pivoting with row interchanges (unblocked algorithm). no cap, that's the whole gig β¨
π Purpose π
!>
!> CGETF2 computes an LU factorization of a general m-by-n matrix A
!> using partial pivoting with row interchanges.
!>
!> The factorization has the form
!> A = P * L * U
!> where P is a permutation matrix, L is lower triangular with unit
!> diagonal elements (lower trapezoidal if m > n), and U is upper
!> triangular (upper trapezoidal if m < n).
!>
!> This is the right-looking Level 2 BLAS version of the algorithm.
!>
so like: you hand her a matrix A, she hands you back P * L * U π« P is the permutation matrix, L is lower triangular with unit diagonal elements (and lower trapezoidal if m > n, she's flexible like that), and U is upper triangular (upper trapezoidal if m < n, versatility icon). and yeah, this is the right-looking Level 2 BLAS version of the algorithm, in case anyone asks π₯
β¨ Parameters β¨
MβMisINTEGER. the number of rows of the matrixA.M >= 0. (zero rows? valid. iconic.)NβNisINTEGER. the number of columns of the matrixA.N >= 0.AβAisCOMPLEXarray, dimension(LDA,N). on entry, the m by n matrix to be factored π€ on exit, the factorsLandUfrom the factorizationA = P*L*U. heads up bestie: the unit diagonal elements ofLare not stored β she's lowkey minimalist about it.LDAβLDAisINTEGER. the leading dimension of the arrayA.LDA >= max(1,M). respect the leading dimension or perish fr fr πIPIVβIPIVisINTEGERarray, dimension(min(M,N)). the pivot indices π― for1 <= i <= min(M,N), rowiof the matrix was interchanged with rowIPIV(i).INFOβINFOisINTEGER. the receipts, ie:= 0: successful exit π< 0: ifINFO = -k, the k-th argument had an illegal value π> 0: ifINFO = k,U(k,k)is exactly zero. the factorization has been completed, but the factorUis exactly singular, and division by zero will occur if it is used to solve a system of equations. β οΈ like, that's a real yikes, be careful
bestie please actually checkINFOand the pivot array. singularU= division by zero = your solve is gonna be a whole mess π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
(all the legends, in that order, every single one π)
π§ Definition π§
Definition at line 107 of file cgetf2.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (she's a bot, a very diligent bot π€β¨)
LAPACK β Version 3.12.0 β /home/abui...RC/cgetf2.f(3)
and that's the page bestie!! π
mwah, go factor some matrices responsibly, and remember: LDA >= max(1,M) or she will simply not π€π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms