TESTING/LIN/cpbt05.f(3)
π
TESTING/LIN/cpbt05.f π
okay so this is the TESTING/LIN/cpbt05.f page from the Library Functions Manual β yes bestie, we're in the LAPACK testing zone and it's lowkey iconic here π
β¨ NAME β¨
TESTING/LIN/cpbt05.f β that's literally the whole name, she's mysterious like that π¦
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine cpbt05 (uplo, n, kd, nrhs, ab, ldab, b, ldb, x, ldx, xact, ldxact, ferr, berr, reslts)β CPBT05, that's her π
π Function/Subroutine Documentation π
subroutine cpbt05 (character uplo, integer n, integer kd, 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)
CPBT05 β¨
π Purpose:
!>
!> CPBT05 tests the error bounds from iterative refinement for the
!> computed solution to a system of equations A*X = B, where A is a
!> Hermitian band matrix.
!>
!> 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
!>
so basically: she's testing the error bounds from iterative refinement for the computed solution to A*X = B where A is a Hermitian band matrix. no cap, that's the whole job π«Ά
RESLTS(1) is the error bound test, = norm(X - XACT) / ( norm(X) * FERR ). and if that ratio is not less than one? you get a large value back. π
RESLTS(2) is the 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.
π Parameters
UPLOβUPLO is CHARACTER*1, and she specifies whether the upper or lower triangular part of the Hermitian matrixAis stored.= 'U': Upper triangular,= 'L': Lower triangular. pick your fighter βNβN is INTEGER, the number of rows of the matricesX,B, andXACT, and the order of the matrixA.N >= 0.KDβKD is INTEGER. it's the number of super-diagonals of the matrixAifUPLO = 'U', or the number of sub-diagonals ifUPLO = 'L'.KD >= 0.NRHSβNRHS is INTEGER, the number of columns of the matricesX,B, andXACT.NRHS >= 0.ABβAB is COMPLEX array, dimension (LDAB,N). it holds the upper or lower triangle of the Hermitian band matrixA, stored in the firstKD+1rows of the array. the j-th column ofAis stored in the j-th column of the arrayABas follows: ifUPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; ifUPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd). yes the indexing is giving main character energy, copy it exactly bestie πLDABβLDAB is INTEGER, the leading dimension of the arrayAB.LDAB >= KD+1.BβB is COMPLEX array, dimension (LDB,NRHS). the right hand side vectors for the system of linear equations π§LDBβLDB is INTEGER, the leading dimension of the arrayB.LDB >= max(1,N).XβX is COMPLEX array, dimension (LDX,NRHS). the computed solution vectors. each vector is stored as a column of the matrixX.LDXβLDX is INTEGER, the leading dimension of the arrayX.LDX >= max(1,N).XACTβXACT is COMPLEX array, dimension (LDX,NRHS). the exact solution vectors. each vector is stored as a column of the matrixXACTβ¨LDXACTβLDXACT is INTEGER, the leading dimension of the arrayXACT.LDXACT >= max(1,N).FERRβFERR is REAL 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βBERR is REAL 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βRESLTS is REAL array, dimension (2). the maximum over theNRHSsolution vectors of the ratios:RESLTS(1) = norm(X - XACT) / ( norm(X) * FERR )andRESLTS(2) = BERR / ( NZ*EPS + (*) )π₯
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 169 of file cpbt05.f. π
β Author β
Generated automatically by Doxygen for LAPACK from the source code. not a human, just a robot doing her thing π€π
so yeah, that's the whole page β every flag, every bound, every >=, all accounted for. go off bestie π«Ά
LAPACK, Version 3.12.0 β mwah, that's the sign-off, ily, bye! ππβ¨
π¦ 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