CPTT05(3)
π CPTT05(3) β the manual page, but make it make sense
okay bestie, first things first: this page lives at /home/abui...IN/cptt05.f(3) in the Library Functions Manual, and the real file it's describing is this absolute icon right here:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/cptt05.f
yes that is a whole path. no I will not be shortening it. it's giving "build artifact realness" and we respect it. π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines
so here's the star of the show, the main character herself:
subroutine CPTT05 (n, nrhs, d, e, b, ldb, x, ldx, xact, ldxact, ferr,
berr, reslts)
CPTT05 β that's her. that's the name. π
π¦ Function/Subroutine Documentation π¦
the full signature, spelled all the way out
subroutine CPTT05 (integer n, integer nrhs, real, dimension( * ) d, complex,
dimension( * ) e, 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)
CPTT05
π Purpose π
no cap, here's the whole point of her existence:
!>
!> CPTT05 tests the error bounds from iterative refinement for the
!> computed solution to a system of equations A*X = B, where A is a
!> Hermitian tridiagonal matrix of order n.
!>
!> RESLTS(1) = test of the error bound
!> = norm(X - XACT) / ( norm(X) * FERR )
!>
!> A large value is returned if this ratio is not less than one.
!>
!> RESLTS(2) = residual from the iterative refinement routine
!> = the maximum of BERR / ( NZ*EPS + (*) ), where
!> (*) = NZ*UNFL / (min_i (abs(A)*abs(X) +abs(b))_i )
!> and NZ = max. number of nonzeros in any row of A, plus 1
!>
like... she literally checks whether your iterative refinement error bounds are behaving. queen behavior honestly. π
πΈ Parameters πΈ
okay this is the long part, but every single one matters, so lock in bestie π₯
NβNisINTEGER. the number of rows of the matricesX,B, andXACT, and also the order of the matrixA. constraint:N >= 0.NRHSβNRHSisINTEGER. the number of columns of the matricesX,B, andXACT. constraint:NRHS >= 0.DβDisREAL array, dimension (N). the n diagonal elements of the tridiagonal matrixA.EβEisCOMPLEX array, dimension (N-1). the (n-1) subdiagonal elements of the tridiagonal matrixA. note theN-1, she's one shorter, that's just her vibe.BβBisCOMPLEX array, dimension (LDB,NRHS). the right hand side vectors for the system of linear equations.LDBβLDBisINTEGER. the leading dimension of the arrayB. constraint:LDB >= max(1,N).XβXisCOMPLEX array, dimension (LDX,NRHS). the computed solution vectors. each vector is stored as a column of the matrixX.LDXβLDXisINTEGER. the leading dimension of the arrayX. constraint:LDX >= max(1,N).XACTβXACTisCOMPLEX array, dimension (LDX,NRHS). the exact solution vectors. each vector is stored as a column of the matrixXACT. yes, the dimension saysLDXand notLDXACTβ that's what the page says, so that's what I'm telling you. πLDXACTβLDXACTisINTEGER. the leading dimension of the arrayXACT. constraint:LDXACT >= max(1,N).FERRβFERRisREAL array, dimension (NRHS). 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βBERRisREAL array, dimension (NRHS). the componentwise relative backward error of each solution vector β i.e., the smallest relative change in any entry ofAorBthat makesXan exact solution.RESLTSβRESLTSisREAL array, dimension (2). the maximum over theNRHSsolution vectors of the ratios:
RESLTS(1) = norm(X - XACT) / ( norm(X) * FERR )
RESLTS(2) = BERR / ( NZ*EPS + (*) )
π Author π
the legends themselves:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 148 of file cptt05.f. (go look, she's there, line 148, iconic) β
π Author (the meta one) π
Generated automatically by Doxygen for LAPACK from the source code.
so nobody hand-wrote this page, a robot did it, and honestly? she ate. πβ¨
and that's the whole page, bestie β every flag, every constraint, every array, all of it, untouched. now go forth and check those error bounds. πΈπ¦
β LAPACK, Version 3.12.0, living at /home/abui...IN/cptt05.f(3), and that's the tea π
π¦ 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