TESTING/LIN/strt02.f(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

πŸ’… TESTING/LIN/strt02.f(3)

okay so bestie, this page is from the Library Functions Manual and it's all about strt02 β€” a subroutine that checks residuals for triangular solves. iykyk. it's giving LAPACK test energy, not main-character app energy.

🌸 NAME

TESTING/LIN/strt02.f

πŸŽ€ SYNOPSIS

✨ Functions/Subroutines

subroutine strt02 (uplo, trans, diag, n, nrhs, a, lda, x, ldx, b, ldb,
           work, resid)
           STRT02

πŸ¦‹ Function/Subroutine Documentation

subroutine strt02 (character uplo, character trans, character diag, integer
           n, integer nrhs, real, dimension( lda, * ) a, integer lda, real,
           dimension( ldx, * ) x, integer ldx, real, dimension( ldb, * ) b, integer
           ldb, real, dimension( * ) work, real resid)
           STRT02

πŸ’– Purpose

okay so STRT02 computes the residual for the computed solution to a triangular system of linear equations op(A)*X = B, where A is a triangular matrix. no cap. The test ratio is the maximum over:

norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),

where op(A) = A or A**T, b is the column of B, x is the solution vector, and EPS is the machine epsilon. The norm used is the 1-norm. periodt. πŸ’…

πŸŽ€ Parameters

  • UPLO β€” CHARACTER*1. tells you if the matrix A is upper or lower triangular, bestie.
    • 'U': Upper triangular
    • 'L': Lower triangular
  • TRANS β€” CHARACTER*1. says which operation is applied to A.
    • 'N': A * X = B (No transpose)
    • 'T': A**T * X = B (Transpose)
    • 'C': A**H * X = B (Conjugate transpose = Transpose)
  • DIAG β€” CHARACTER*1. tells you whether or not the matrix A is unit triangular.
    • 'N': Non-unit triangular
    • 'U': Unit triangular
  • N β€” INTEGER. the order of the matrix A. N >= 0.
  • NRHS β€” INTEGER. the number of right hand sides, i.e., the number of columns of the matrices X and B. NRHS >= 0.
  • A β€” REAL array, dimension (LDA,N). the triangular matrix A. If UPLO = 'U', the leading n by n upper triangular part of the array A contains the upper triangular matrix, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading n by n lower triangular part of the array A contains the lower triangular matrix, and the strictly upper triangular part of A is not referenced. If DIAG = 'U', the diagonal elements of A are also not referenced and are assumed to be 1. 🫢
  • LDA β€” INTEGER. the leading dimension of the array A. LDA >= max(1,N).
  • X β€” REAL array, dimension (LDX,NRHS). the computed solution vectors for the system of linear equations.
  • LDX β€” INTEGER. the leading dimension of the array X. LDX >= max(1,N).
  • B β€” REAL array, dimension (LDB,NRHS). the right hand side vectors for the system of linear equations.
  • LDB β€” INTEGER. the leading dimension of the array B. LDB >= max(1,N).
  • WORK β€” REAL array, dimension (N). that's the whole note, bestie.
  • RESID β€” REAL. the maximum over the number of right hand sides of:
norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ).

πŸ’« Author

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

Definition at line 148 of file strt02.f.

πŸ‘‘ Author

Generated automatically by Doxygen for LAPACK from the source code.


sending kisses and slay vibes from the Library Functions Manual β€” footer energy: LAPACK Version 3.12.0, page TESTING/LIN/strt02.f(3) (no date line in this snippet, so that's all we got) πŸ’œβœ¨

πŸ“¦ where this page comes from