TESTING/LIN/dgbt05.f(3)

๐Ÿ“ฆ
version 3.12.1 ยท 3 versions
, in arch rolling

๐Ÿ’– TESTING/LIN/dgbt05.f ๐Ÿ’–

okay bestie, we're in the Library Functions Manual and this page is all about TESTING/LIN/dgbt05.f โ€” LAPACK's little testing subroutine moment. Let's get into it, no cap. โœจ

๐Ÿ’… NAME ๐Ÿ’…

TESTING/LIN/dgbt05.f

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

Functions/Subroutines

subroutine dgbt05 (trans, n, kl, ku, nrhs, ab, ldab, b, ldb, x, ldx,
           xact, ldxact, ferr, berr, reslts)
           DGBT05

๐ŸŒˆ Function/Subroutine Documentation ๐ŸŒˆ

subroutine dgbt05 (character trans, integer n, integer kl, integer ku,
       integer nrhs, double precision, dimension( ldab, * ) ab, integer ldab,
       double precision, dimension( ldb, * ) b, integer ldb, double precision,
       dimension( ldx, * ) x, integer ldx, double precision, dimension( ldxact,
       * ) xact, integer ldxact, double precision, dimension( * ) ferr, double
       precision, dimension( * ) berr, double precision, dimension( * ) reslts)

DGBT05

๐ŸŽฏ Purpose ๐ŸŽฏ

Okay so DGBT05 tests the error bounds from iterative refinement for the computed solution to a system of equations op(A)*X = B, where A is a general band matrix of order n with kl subdiagonals and ku superdiagonals and op(A) = A or A**T, depending on TRANS. ๐Ÿ’–

Then the receipts:

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(op(A))*abs(X) +abs(b))_i )
            and NZ = max. number of nonzeros in any row of A, plus 1

No skipping, bestie โ€” that's the whole formula vibe. ๐Ÿงฎโœจ

๐Ÿงพ 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. It's the number of rows of the matrices X, B, and XACT, and the order of the matrix A. N >= 0. ๐Ÿซถ

๐Ÿ”ข KL

KL is INTEGER. It's the number of subdiagonals within the band of A. KL >= 0.

๐Ÿ”ข KU

KU is INTEGER. It's the number of superdiagonals within the band of A. KU >= 0.

๐Ÿ”ข NRHS

NRHS is INTEGER. It's the number of columns of the matrices X, B, and XACT. NRHS >= 0.

๐Ÿงฑ AB

AB is a DOUBLE PRECISION array, dimension (LDAB,N). It's the original band matrix A, stored in rows 1 to KL+KU+1. The j-th column of A is stored in the j-th column of the array AB as follows:

AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(n,j+kl).

๐Ÿงฑ LDAB

LDAB is INTEGER. It's the leading dimension of the array AB. LDAB >= KL+KU+1. don't mess this one up! ๐Ÿ˜ญ

๐Ÿงฑ B

B is a DOUBLE PRECISION array, dimension (LDB,NRHS). These are the right hand side vectors for the system of linear equations.

๐Ÿงฑ LDB

LDB is INTEGER. It's the leading dimension of the array B. LDB >= max(1,N).

๐Ÿงฑ X

X is a DOUBLE PRECISION array, dimension (LDX,NRHS). These are the computed solution vectors. Each vector is stored as a column of the matrix X.

๐Ÿงฑ LDX

LDX is INTEGER. It's the leading dimension of the array X. LDX >= max(1,N).

๐Ÿงฑ XACT

XACT is a DOUBLE PRECISION array, dimension (LDX,NRHS). These are the exact solution vectors. Each vector is stored as a column of the matrix XACT.

๐Ÿงฑ LDXACT

LDXACT is INTEGER. It's the leading dimension of the array XACT. LDXACT >= max(1,N).

๐Ÿ“ FERR

FERR is a DOUBLE PRECISION array, dimension (NRHS). It's the estimated forward error bounds for each solution vector X. If XTRUE is the true solution, FERR bounds the magnitude of the largest entry in (X - XTRUE) divided by the magnitude of the largest entry in X.

๐Ÿ“ BERR

BERR is a DOUBLE PRECISION array, dimension (NRHS). It's the componentwise relative backward error of each solution vector (i.e., the smallest relative change in any entry of A or B that makes X an exact solution).

๐Ÿ“Š RESLTS

RESLTS is a DOUBLE PRECISION array, dimension (2). It's the maximum over the NRHS solution vectors of the ratios:

RESLTS(1) = norm(X - XACT) / ( norm(X) * FERR )
RESLTS(2) = BERR / ( NZ*EPS + (*) )

๐Ÿ‘‘ Author ๐Ÿ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 174 of file dgbt05.f.

๐Ÿค– Author ๐Ÿค–

Generated automatically by Doxygen for LAPACK from the source code.


๐Ÿ’– And that's the page, bestie! This iconic little number is from LAPACK Version 3.12.0, for TESTING/LIN/dgbt05.f(3) โ€” slay and goodbye! ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from