TESTING/EIG/ssvdch.f(3)

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

πŸ’… TESTING/EIG/ssvdch.f

okay BESTIE, this is a page from the Library Functions Manual and it's serving TESTING/EIG/ssvdch.f realness. The subroutine in the spotlight is ssvdch, aka SSVDCH, and it's here to vibe-check whether your computed singular values are accurate. πŸ’–βœ¨

πŸŽ€ NAME πŸŽ€

TESTING/EIG/ssvdch.f

🌸 SYNOPSIS 🌸

✨ Functions/Subroutines ✨

  • subroutine ssvdch (n, s, e, svd, tol, info) β€” SSVDCH

πŸ¦‹ Function/Subroutine Documentation πŸ¦‹

πŸ’… subroutine ssvdch (integer n, real, dimension( * ) s, real, dimension( * ) e, real, dimension( * ) svd, real tol, integer info)

SSVDCH

🎯 Purpose:

okay so SSVDCH checks to see if SVD(1) ,..., SVD(N) are accurate singular values of the bidiagonal matrix B with diagonal entries S(1) ,..., S(N) and superdiagonal entries E(1) ,..., E(N-1)). It does this by expanding each SVD(I) into an interval [SVD(I) * (1-EPS) , SVD(I) * (1+EPS)], merging overlapping intervals if any, and using Sturm sequences to count and verify whether each resulting interval has the correct number of singular values (using SSVDCT). Here EPS=TOL*MAX(N/10,1)*MACHEP, where MACHEP is the machine precision. The routine assumes the singular values are sorted with SVD(1) the largest and SVD(N) smallest. If each interval contains the correct number of singular values, INFO = 0 is returned; otherwise INFO is the index of the first singular value in the first bad interval. πŸ”₯

πŸ“¦ Parameters

  • N β€” N is INTEGER; the dimension of the bidiagonal matrix B. πŸ’œ
  • S β€” S is REAL array, dimension (N); the diagonal entries of the bidiagonal matrix B. πŸ“
  • E β€” E is REAL array, dimension (N-1); the superdiagonal entries of the bidiagonal matrix B. πŸ¦‹
  • SVD β€” SVD is REAL array, dimension (N); the computed singular values to be checked. ⭐
  • TOL β€” TOL is REAL; error tolerance for checking, a multiplier of the machine precision. πŸŽ€
  • INFO β€” INFO is INTEGER:
    • =0 if the singular values are all correct (to within 1 +- TOL*MACHEPS)
    • >0 if the interval containing the INFO-th singular value contains the incorrect number of singular values. πŸ’…

πŸ‘‘ Author

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

πŸ“ Definition at line 96 of file ssvdch.f.

πŸ‘‘ Author

Generated automatically by Doxygen for LAPACK from the source code. πŸ€–πŸ’–

okay that's the whole page, bestie! 🌈 Source/version sign-off: this is LAPACK, Version 3.12.0, with page tag TESTING/EIG/ssvdch.f(3) β€” and the original footer has no date slot filled in, so no date to report. πŸ’…βœ¨

πŸ“¦ where this page comes from