TESTING/LIN/dgtt01.f(3)

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

✨ TESTING/LIN/dgtt01.f ✨

okay bestie, so this is like the manual page for TESTING/LIN/dgtt01.f and honestly it's giving "I test linear algebra so you don't have to" energy πŸ’…


🌸 SYNOPSIS 🌸

Functions/Subroutines

subroutine dgtt01 (n, dl, d, du, dlf, df, duf, du2, ipiv, work, ldwork,
    rwork, resid)

DGTT01 β€” that's the name, no cap πŸŽ€


πŸ’– Function/Subroutine Documentation πŸ’–

subroutine dgtt01 (integer n, double precision, dimension( * ) dl, double precision, dimension( * ) d, double precision, dimension( * ) du, double precision, dimension( * ) dlf, double precision, dimension( * ) df, double precision, dimension( * ) duf, double precision, dimension( * ) du2, integer, dimension( * ) ipiv, double precision, dimension( ldwork, * ) work, integer ldwork, double precision, dimension( * ) rwork, double precision resid)

DGTT01 β€” yes queen, say it again πŸ‘‘


πŸ¦‹ Purpose πŸ¦‹

so like, DGTT01 reconstructs a tridiagonal matrix A from its LU factorization, and then it computes the residual β€” and the formula is literally:

norm(L*U - A) / ( norm(A) * EPS ),

where EPS is the machine epsilon, bestie. that's the whole vibe ✨


🌈 Parameters 🌈

okay so here's every single parameter, no skipping, we're thorough in this house:

  • N β€” N is INTEGER. it's the order of the matrix A, and it's gotta be N >= 0. periodt πŸ’…
  • DL β€” DL is DOUBLE PRECISION array, dimension (N-1). these are the (n-1) sub-diagonal elements of A. lowkey important πŸŽ€
  • D β€” D is DOUBLE PRECISION array, dimension (N). the diagonal elements of A. main character energy honestly ⭐
  • DU β€” DU is DOUBLE PRECISION array, dimension (N-1). the (n-1) super-diagonal elements of A. slay πŸ’œ
  • DLF β€” DLF is DOUBLE PRECISION array, dimension (N-1). these are the (n-1) multipliers that define the matrix L from the LU factorization of A. iconic πŸ”₯
  • DF β€” DF is DOUBLE PRECISION array, dimension (N). the n diagonal elements of the upper triangular matrix U from the LU factorization of A. we stan 🌸
  • DUF β€” DUF is DOUBLE PRECISION array, dimension (N-1). the (n-1) elements of the first super-diagonal of U. yes bestie πŸ¦‹
  • DU2 β€” DU2 is DOUBLE PRECISION array, dimension (N-2). the (n-2) elements of the second super-diagonal of U. look at her go πŸ’–
  • IPIV β€” IPIV is INTEGER array, dimension (N). these are the pivot indices; for 1 <= i <= n, row i of the matrix was interchanged with row IPIV(i). and here's the tea: IPIV(i) will always be either i or i+1; if IPIV(i) = i that means a row interchange was not required. iykyk πŸ™ˆ
  • WORK β€” WORK is DOUBLE PRECISION array, dimension (LDWORK,N). it's workspace, it works hard so you don't have to ✨
  • LDWORK β€” LDWORK is INTEGER. it's the leading dimension of the array WORK, and it needs LDWORK >= max(1,N). don't forget that constraint bestie πŸ’€
  • RWORK β€” RWORK is DOUBLE PRECISION array, dimension (N). more workspace, we love to see it πŸŽ€
  • RESID β€” RESID is DOUBLE PRECISION. it's the scaled residual: norm(L*U - A) / (norm(A) * EPS). this is the final answer, the payoff, the moment we've all been waiting for πŸ‘‘

πŸ‘‘ Author πŸ‘‘

like, the whole squad of institutions:

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

Definition at line 132 of file dgtt01.f. periodt πŸ’…


Author

Generated automatically by Doxygen for LAPACK from the source code. not me being auto-generated 😭


this whole page is from LAPACK, Version 3.12.0, and the manual page date is just TESTING/LIN/dgtt01.f(3) β€” so like, that's the vibe check done and dusted βœ¨πŸ’–πŸ¦‹

hope that helped bestie, now go reconstruct those tridiagonal matrices and slay πŸŽ€πŸ‘‘πŸ’…

πŸ“¦ where this page comes from