CGBT05(3)
π CGBT05(3) β Library Functions Manual π
okay bestie, we are in the Library Functions Manual and the page is cgbt05.f(3). This is the whole group-chat rundown for CGBT05, a Fortran subroutine situation. It's giving LAPACK testing energy, and the facts are staying exactly where they are β no cap. π
β¨ NAME β¨
The NAME section is just the full file path, path and all:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/cgbt05.f
π¦ SYNOPSIS π¦
Functions/Subroutines π¦
Here's the subroutine lineup, exactly:
subroutine CGBT05 (trans, n, kl, ku, nrhs, ab, ldab, b, ldb, x, ldx,
xact, ldxact, ferr, berr, reslts)
CGBT05
π Function/Subroutine Documentation π
The full signature is this iconic thing right here:
subroutine CGBT05 (character trans, integer n, integer kl, integer ku,
integer nrhs, complex, dimension( ldab, * ) ab, integer ldab, complex,
dimension( ldb, * ) b, integer ldb, complex, dimension( ldx, * ) x,
integer ldx, complex, dimension( ldxact, * ) xact, integer ldxact, real,
dimension( * ) ferr, real, dimension( * ) berr, real, dimension( * )
reslts)
CGBT05
π― Purpose π―
CGBT05 is the tester for error bounds coming out of iterative refinement when you've computed a solution to a system of equations op(A)*X = B. The matrix A is a general band matrix of order n with kl subdiagonals and ku superdiagonals, and op(A) = A, A**T, or A**H, depending on TRANS. Slay. β¨
Then the results are doing this:
RESLTS(1) = test of the error bound
= norm(X - XACT) / ( norm(X) * FERR )
If that ratio is not less than one, a large value is returned. That's the little alarm bell. π¨
RESLTS(2) = residual from the iterative refinement routine
= the maximum of BERR / ( NZ*EPS + (*) ), where
(*) = NZ*UNFL / (min_i (abs(op(A))*abs(X) +abs(b))_i )
and NZ = max. number of nonzeros in any row of A, plus 1
π οΈ Parameters π οΈ
TRANSβ this is aCHARACTER*1telling us which form of the system we're in. The options are:= 'N': A * X = B (No transpose)= 'T': A**T * X = B (Transpose)= 'C': A**H * X = B (Conjugate transpose = Transpose)
NβNis anINTEGER, bestie. It's how many rowsX,B, andXACThave, and it's also the order ofA. It must satisfyN >= 0.KLβKLis anINTEGER: the number of subdiagonals insideA's band.KL >= 0is the requirement.KUβKUis anINTEGER: the number of superdiagonals insideA's band.KU >= 0is the requirement.NRHSβNRHSis anINTEGERfor how many columnsX,B, andXACThave. It's gotta beNRHS >= 0.ABβABis aCOMPLEX arraywithdimension (LDAB,N). This holds the original band matrixA, packed into rows1throughKL+KU+1. Here's the mapping:
AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(n,j+kl).
LDABβLDABis anINTEGERfor the leading dimension of the arrayAB, and it has to beLDAB >= KL+KU+1.BβBis aCOMPLEX array,dimension (LDB,NRHS), and it's the right hand side vectors for the system of linear equations. Periodt.LDBβLDBis theINTEGERleading dimension of the arrayB; requirement:LDB >= max(1,N).XβXis aCOMPLEX array,dimension (LDX,NRHS). These are the computed solution vectors, packed one per column of the matrixX.LDXβLDXis theINTEGERleading dimension of the arrayX; requirement:LDX >= max(1,N).XACTβXACTis aCOMPLEX array,dimension (LDX,NRHS)β yes, that's what the page says β and it holds the exact solution vectors, one per column of the matrixXACT.LDXACTβLDXACTis theINTEGERleading dimension of the arrayXACT; requirement:LDXACT >= max(1,N).FERRβFERRis aREAL array,dimension (NRHS). It's the estimated forward error bounds for each solution vectorX. IfXTRUEis the true solution,FERRbounds the magnitude of the largest entry in(X - XTRUE)divided by the magnitude of the largest entry inX.BERRβBERRis aREAL array,dimension (NRHS). It's the componentwise relative backward error of each solution vector (i.e., the smallest relative change in any entry ofAorBthat makesXan exact solution).RESLTSβRESLTSis aREAL array,dimension (2). It's the maximum over theNRHSsolution vectors of these ratios:
RESLTS(1) = norm(X - XACT) / ( norm(X) * FERR )
RESLTS(2) = BERR / ( NZ*EPS + (*) )
π Author π
The author section is naming the institutions, and we are respecting the icons:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 174 of file cgbt05.f.
π Author (generated automatically) π
Generated automatically by Doxygen for LAPACK from the source code. It's the auto-generated author note, doing its little documentation dance. π«Ά
And that's the page, bestie. The footer energy is LAPACK Version 3.12.0 with the source/page source path /home/abui...IN/cgbt05.f(3), so the version and source line are right here in the sign-off. No date is shown in this footer, just the version and path doing their thing. Stay slay, and may your error bounds always be less than one. πβ¨
π¦ 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