SRC/sgesv.f(3)
π SRC/sgesv.f β Library Functions Manual π
okay bestie, welcome to the Library Functions Manual page for SRC/sgesv.f(3). This is the SGESV tea: solving a real linear system with LU energy. Letβs go β¨
πΈ NAME πΈ
SRC/sgesv.f
π¦ SYNOPSIS π¦
β¨ Functions/Subroutines β¨
subroutine sgesv (n, nrhs, a, lda, ipiv, b, ldb, info)
π Function/Subroutine Documentation π
subroutine sgesv (integer n, integer nrhs, real, dimension( lda, * ) a,
integer lda, integer, dimension( * ) ipiv, real, dimension( ldb, * ) b,
integer ldb, integer info)
π― Purpose
SGESV computes the solution to a real 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. Literally the whole plot. π
π Parameters
NβNisINTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0.NRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.AβAisREAL array, 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βLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).IPIVβIPIVisINTEGER array, dimension(N). The pivot indices that define the permutation matrixP; rowiof the matrix was interchanged with rowIPIV(i).BβBisREAL array, dimension(LDB,NRHS). On entry, theN-by-NRHSmatrix of right hand side matrixB. On exit, ifINFO = 0, theN-by-NRHSsolution matrixX.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).INFOβINFOisINTEGER.= 0: successful exit< 0: ifINFO = -i, the i-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.
bestie, theINFO > 0case is the βmath said no πβ moment: the factorization finished, butUis 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 sgesv.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and thatβs the page, bestie π«Ά. source/version corner: SRC/sgesv.f(3) and LAPACK Version 3.12.0 β no date on this footer, so weβre not inventing one π
π¦ 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