SRC/sgerfs.f(3)
hey bestie π welcome to SRC/sgerfs.f(3) β thatβs the page title, and it lives in the Library Functions Manual. no cap, this one is a Fortran subroutine situation, so grab a lil snack and letβs get into it β¨
π NAME π
SRC/sgerfs.f β thatβs the whole name, iconic and to the point π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine sgerfs (trans, n, nrhs, a, lda, af, ldaf, ipiv, b, ldb, x,
ldx, ferr, berr, work, iwork, info)
SGERFS
SGERFS is the name, and yes itβs giving main-character linear algebra π
π¦ 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. literally its whole job π«Ά
πΈ Parameters πΈ
TRANSβTRANS is CHARACTER*1. It specifies the form of the system of equations:= 'N': A * X = B (No transpose)= 'T': A**T * X = B (Transpose)= 'C': A**H * X = B (Conjugate transpose = Transpose)
NβN is INTEGER. The order of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.AβA is REAL array, dimension (LDA,N). The originalN-by-NmatrixA.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).AFβAF is REAL array, dimension (LDAF,N). The factorsLandUfrom the factorizationA = P*L*Uas computed bySGETRF.LDAFβLDAF is INTEGER. The leading dimension of the arrayAF.LDAF >= max(1,N).IPIVβIPIV is INTEGER array, dimension (N). The pivot indices fromSGETRF; for1<=i<=N, rowiof the matrix was interchanged with rowIPIV(i).BβB is REAL array, dimension (LDB,NRHS). The right hand side matrixB.LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N).XβX is REAL array, dimension (LDX,NRHS). On entry, the solution matrixX, as computed bySGETRS. On exit, the improved solution matrixX.LDXβLDX is INTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβFERR is REAL array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(the j-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.BERRβBERR is REAL array, 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).WORKβWORK is REAL array, dimension (3*N).IWORKβIWORK is INTEGER array, dimension (N).INFOβINFO is INTEGER:= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value
π₯ Internal Parameters π₯
ITMAXβITMAX is the maximum number of steps of iterative refinement.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition π
Definition at line 183 of file sgerfs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page bestie β the footer says SRC/sgerfs.f(3) and LAPACK Version 3.12.0. 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