SRC/stprfs.f(3)
π¦ SRC/stprfs.f(3) β Library Functions Manual π¦
okay so bestie, this is the page for STPRFS β the LAPACK error-bound and backward-error-estimate girlie for triangular packed linear systems. No cap, sheβs here to tell you how good your solve is π
β¨
πΈ NAME πΈ
SRC/stprfs.f β the file behind the stprfs subroutine. iykyk π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine stprfs (uplo, trans, diag, n, nrhs, ap, b, ldb, x, ldx, ferr, berr, work, iwork, info)βSTPRFS
π¦ FUNCTION/SUBROUTINE DOCUMENTATION π¦
π subroutine stprfs π
subroutine stprfs (character uplo, character trans, character diag, integer n, integer nrhs, real, dimension( * ) ap, 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)
STPRFS
π Purpose π
So hereβs the tea: STPRFS provides error bounds and backward error estimates for the solution to a system of linear equations with a triangular packed coefficient matrix. Literally exactly what it says on the tin π
The solution matrix X must be computed by STPTRS or some other means before entering this routine.
π«Ά And bestie, STPRFS does not do iterative refinement β because doing so cannot improve the backward error. Periodt.
π Parameters π
UPLOβ isCHARACTER*1= 'U':Ais upper triangular;= 'L':Ais lower triangular.
TRANSβ isCHARACTER*1. 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)
DIAGβ isCHARACTER*1= 'N':Ais non-unit triangular;= 'U':Ais unit triangular.
Nβ isINTEGER. The order of the matrixA.N >= 0.NRHSβ isINTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.APβ isREAL array, dimension (N*(N+1)/2). The upper or lower triangular matrixA, packed columnwise in a linear array. The j-th column ofAis stored in the arrayAPas follows:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<=n.
If DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be 1.
Bβ isREAL array, dimension (LDB,NRHS). The right hand side matrixB.LDBβ isINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).Xβ isREAL array, dimension (LDX,NRHS). The solution matrixX.LDXβ isINTEGER. The leading dimension of the arrayX.LDX >= max(1,N).FERRβ isREAL 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β isREAL 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β isREAL array, dimension (3*N).IWORKβ isINTEGER array, dimension (N).INFOβ isINTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
π Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π Definition π
Definition at line 173 of file stprfs.f.
π Author (generated) π
Generated automatically by Doxygen for LAPACK from the source code.
Thatβs the whole thing, bestie β SRC/stprfs.f(3) from LAPACK Version 3.12.0. The original footer didnβt give me a calendar date to repeat, so Iβm not making one up π
πβ¨
π¦ 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