SRC/zgesv.f(3)
Hiii bestie π you're reading the SRC/zgesv.f(3) page from the Library Functions Manual, and it's giving "complex linear solve, but make it LAPACK." Buckle up β we're doing this properly. π
β¨ NAME β¨
SRC/zgesv.f β that's the name section, no extra lore. π
π§© SYNOPSIS π§©
π§© Functions/Subroutines
subroutine zgesv (n, nrhs, a, lda, ipiv, b, ldb, info)
π Function/Subroutine Documentation π
Here's the full signature, bestie β yes, it's a lot, but it's iconic:
subroutine zgesv (integer n, integer nrhs, complex*16, dimension( lda, * )
a, integer lda, integer, dimension( * ) ipiv, complex*16, dimension(
ldb, * ) b, integer ldb, integer info)
π― Purpose
ZGESV computes the solution to a complex system of linear equations
A * X = B,
where A is an N-by-N matrix and X and B are N-by-NRHS matrices.
The LU decomposition with partial pivoting and row interchanges is used to factor A as
A = P * L * U,
where P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form of A is then used to solve the system of equations A * X = B.
ποΈ Parameters
NβINTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0.NRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.AβCOMPLEX*16array, dimension(LDA,N). On entry, theN-by-Ncoefficient matrixA. On exit, the factorsLandUfrom the factorizationA = P*L*U; the unit diagonal elements ofLare not stored.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).IPIVβINTEGERarray, dimension(N). The pivot indices that define the permutation matrixP; rowiof the matrix was interchanged with rowIPIV(i).BβCOMPLEX*16array, dimension(LDB,NRHS). On entry, theN-by-NRHSmatrix of right hand side matrixB. On exit, ifINFO = 0, theN-by-NRHSsolution matrixX.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).INFOβINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i,U(i,i)is exactly zero. The factorization has been completed, but the factorUis exactly singular, so the solution could not be computed.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 123 of file zgesv.f.
That's literally where it's defined. β¨
πͺ Author
Generated automatically by Doxygen for LAPACK from the source code.
Okay that's the whole page, bestie β LAPACK Version 3.12.0, SRC/zgesv.f(3). Byeee! π
π¦ 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