SRC/dgesv.f(3)
π NAME π
SRC/dgesv.f β bestie, this is the manual page for the LAPACK routine dgesv, from the Library Functions Manual π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine dgesv (n, nrhs, a, lda, ipiv, b, ldb, info)
π¦ Function/Subroutine Documentation π¦
subroutine dgesv (integer n, integer nrhs, double precision, dimension( lda, * ) a, integer lda, integer, dimension( * ) ipiv, double precision, dimension( ldb, * ) b, integer ldb, integer info)
πΈ Purpose πΈ
okay so real talk: DGESV computes the solution to a real system of linear equations, and the whole vibe is:
A * X = B,
where A is an N-by-N matrix and X and B are N-by-NRHS matrices. iconic linear algebra behavior, no cap π
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. Then the factored form of A is used to solve the system of equations A * X = B. literally the whole glow-up of factor once, solve with it β¨
π Parameters π
NβNisINTEGER. itβs the number of linear equations, i.e., the order of the matrixA.N >= 0. bestie, zero is allowed, keep it cute π«ΆNRHSβNRHSisINTEGER. itβs the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0. yes, zero is valid here too πAβAisDOUBLE PRECISION array, dimension (LDA,N). on entry, itβs theN-by-Ncoefficient matrixA. on exit, it holds the factorsLandUfrom the factorizationA = P*L*U; the unit diagonal elements ofLare not stored. sheβs transformed, periodt πLDAβLDAisINTEGER. the leading dimension of the arrayA.LDA >= max(1,N). do not skip this check, iβm begging πIPIVβIPIVisINTEGER array, dimension (N). these are the pivot indices that define the permutation matrixP; rowiof the matrix was interchanged with rowIPIV(i). the receipts of which rows got swapped, iykyk πBβBisDOUBLE PRECISION array, dimension (LDB,NRHS). on entry, itβs theN-by-NRHSmatrix of right hand side matrixB. on exit, ifINFO = 0, itβs theN-by-NRHSsolution matrixX. she goes from right-hand-side to answer key πLDBβLDBisINTEGER. the leading dimension of the arrayB.LDB >= max(1,N). another leading-dimension moment, respect it πINFOβINFOisINTEGER.= 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. not her finest moment, but the math said what it said π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file dgesv.f. slay, line 123, main character energy π₯
π Author π
Generated automatically by Doxygen for LAPACK from the source code. yes bestie, the robots made the docs cute π§
LAPACK Β· Version 3.12.0 Β· SRC/dgesv.f(3) β thatβs the sign-off, mwah πβ¨
π¦ 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