SGERFS(3)
π SGERFS(3) β like, the LAPACK manual, but make it make sense
okay so bestie, welcome to the LAPACK girlies' corner π this is from Version 3.12.0, and the whole thing lives at /home/abui...RC/sgerfs.f(3) β yes the path is truncated in the header, that's just how it is, we don't fix it, we respect it π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgerfs.f β that's the file, that's the whole name section, she's literally just a path and honestly? iconic. π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SGERFS (trans, n, nrhs, a, lda, af, ldaf, ipiv, b, ldb, x,
ldx, ferr, berr, work, iwork, info)
SGERFS β that's her, that's the girl πΈ
π§ Function/Subroutine Documentation π§
subroutine SGERFS (character trans, integer n, integer nrhs, real,
dimension( lda, * ) a, integer lda, real, dimension( ldaf, * ) af,
integer ldaf, integer, dimension( * ) ipiv, real, dimension( ldb, * ) b,
integer ldb, real, dimension( ldx, * ) x, integer ldx, real, dimension(
* ) ferr, real, dimension( * ) berr, real, dimension( * ) work, integer,
dimension( * ) iwork, integer info)
SGERFS
π Purpose:
!> !> SGERFS improves the computed solution to a system of linear !> equations and provides error bounds and backward error estimates for !> the solution. !>
ngl bestie, that's the whole gig: you already got a solution, she makes it better and then hands you receipts for how wrong it might still be. main character energy fr fr β¨
π Parameters π
TRANSβ bestie this is aCHARACTER*1and it picks which version of the system you're solving. the vibes are:= 'N': A * X = B (No transpose)= 'T': A**T * X = B (Transpose)= 'C': A**H * X = B (Conjugate transpose = Transpose)
NβNisINTEGER. it's the order of the matrixA. rule:N >= 0. no negative girlies allowed π«NRHSβNRHSisINTEGER. the number of right hand sides, aka the number of columns of the matricesBandX. rule:NRHS >= 0. π«ΆAβAisREALarray, dimension(LDA,N). the originalN-by-NmatrixA. the OG. the blueprint. πLDAβLDAisINTEGER. the leading dimension of the arrayA. rule:LDA >= max(1,N). βAFβAFisREALarray, dimension(LDAF,N). the factorsLandUfrom the factorizationA = P*L*Uas computed bySGETRF. she's the pre-chewed version, we love a shortcut πLDAFβLDAFisINTEGER. the leading dimension of the arrayAF. rule:LDAF >= max(1,N). πΈIPIVβIPIVisINTEGERarray, dimension(N). the pivot indices fromSGETRF; for1<=i<=N, rowiof the matrix was interchanged with rowIPIV(i). the swap receipts πBβBisREALarray, dimension(LDB,NRHS). the right hand side matrixB. πLDBβLDBisINTEGER. the leading dimension of the arrayB. rule:LDB >= max(1,N). π¦XβXisREALarray, dimension(LDX,NRHS). on entry, the solution matrixX, as computed bySGETRS. on exit, the improved solution matrixX. she goes in mid and comes out β¨glowed upβ¨LDXβLDXisINTEGER. the leading dimension of the arrayX. rule:LDX >= max(1,N). πFERRβFERRisREALarray, dimension(NRHS). the estimated forward error bound for each solution vectorX(j)(thej-th column of the solution matrixX). ifXTRUEis the true solution corresponding toX(j),FERR(j)is an estimated upper bound for the magnitude of the largest element in(X(j) - XTRUE)divided by the magnitude of the largest element inX(j). the estimate is as reliable as the estimate forRCOND, and is almost always a slight overestimate of the true error. so likeβ¦ she's a lil dramatic, she rounds up, but she's trustworthy πBERRβBERRisREALarray, dimension(NRHS). the componentwise relative backward error of each solution vectorX(j)(i.e., the smallest relative change in any element ofAorBthat makesX(j)an exact solution). the "how much would i have to fudge the inputs to make this technically correct" number πWORKβWORKisREALarray, dimension(3*N). scratch space, mind your business π₯IWORKβIWORKisINTEGERarray, dimension(N). also scratch space, integer flavoured π§INFOβINFOisINTEGER. the vibe check:= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value
π Internal Parameters: π
!> ITMAX is the maximum number of steps of iterative refinement. !>
that's it, that's the whole internal tea β
πΊ Author πΊ
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 183 of file sgerfs.f. π
π Author (again, but the auto-gen one) π
Generated automatically by Doxygen for LAPACK from the source code. she wasn't hand-written, she was born this way π€π
okay bestie that's the whole page, no cap, nothing skipped π«Ά
LAPACK, Version 3.12.0 β and the file is /home/abui...RC/sgerfs.f(3), mwah, bye, go refine some solutions iteratively π
β¨
π¦ 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