larrj(3)
π larrj(3) β Library Functions Manual
okay bestie, so this is the larrj(3) page from the LAPACK manual, and ngl it's a glow-up page for two little subroutines that do the actual refining work inside stemr. Think of them as the backstage crew β nobody claps for them but the show does not go on without them. π
β¨ NAME β¨
larrj β literally: larrj: step in stemr, refine eigval estimates. That's the whole vibe. It's a step inside stemr, and what it does is refine eigenvalue estimates. Periodt. π
πΈ SYNOPSIS πΈ
π«Ά Functions
subroutine dlarrj (n, d, e2, ifirst, ilast, rtol, offset, w, werr, work, iwork, pivmin, spdiam, info)
subroutine dlarrj (n, d, e2, ifirst, ilast, rtol, offset, w, werr, work,
iwork, pivmin, spdiam, info)
DLARRJ performs refinement of the initial estimates of the eigenvalues of the matrix T.
subroutine slarrj (n, d, e2, ifirst, ilast, rtol, offset, w, werr, work, iwork, pivmin, spdiam, info)
subroutine slarrj (n, d, e2, ifirst, ilast, rtol, offset, w, werr, work,
iwork, pivmin, spdiam, info)
SLARRJ performs refinement of the initial estimates of the eigenvalues of the matrix T.
quick vibe check:d= double precision version,s= single precision version. same energy, different float size. iykyk π
π¦ DETAILED DESCRIPTION π¦
π« FUNCTION DOCUMENTATION π«
π subroutine dlarrj (integer n, double precision, dimension( * ) d, double precision, dimension( * ) e2, integer ifirst, integer ilast, double precision rtol, integer offset, double precision, dimension( * ) w, double precision, dimension( * ) werr, double precision, dimension( * ) work, integer, dimension( * ) iwork, double precision pivmin, double precision spdiam, integer info)
DLARRJ performs refinement of the initial estimates of the eigenvalues of the matrix T. that's the whole assignment, bestie. π
π₯ Purpose π₯
!>
!> Given the initial eigenvalue approximations of T, DLARRJ
!> does bisection to refine the eigenvalues of T,
!> W( IFIRST-OFFSET ) through W( ILAST-OFFSET ), to more accuracy. Initial
!> guesses for these eigenvalues are input in W, the corresponding estimate
!> of the error in these guesses in WERR. During bisection, intervals
!> [left, right] are maintained by storing their mid-points and
!> semi-widths in the arrays W and WERR respectively.
!>
so fr fr: you hand it your rough guesses in W and your "how wrong am i probably" numbers in WERR, and it goes to town with bisection until W( IFIRST-OFFSET ) through W( ILAST-OFFSET ) are way more accurate. the intervals [left, right] get tracked by stashing their mid-points and semi-widths in W and WERR respectively. iconic behavior honestly. β¨
π Parameters π
NβNisINTEGER. the order of the matrix. π§DβDisDOUBLE PRECISION array, dimension (N). the N diagonal elements of T. πE2βE2isDOUBLE PRECISION array, dimension (N-1). the Squares of the (N-1) subdiagonal elements of T. πIFIRSTβIFIRSTisINTEGER. the index of the first eigenvalue to be computed. πΈILASTβILASTisINTEGER. the index of the last eigenvalue to be computed. πΈRTOLβRTOLisDOUBLE PRECISION. tolerance for the convergence of the bisection intervals. an interval[LEFT,RIGHT]has converged ifRIGHT-LEFT < RTOL*MAX(|LEFT|,|RIGHT|). that's the literal convergence condition, no cap. π―OFFSETβOFFSETisINTEGER. offset for the arraysWandWERR, i.e., theIFIRST-OFFSETthroughILAST-OFFSETelements of these arrays are to be used. lowkey the sneakiest lil parameter here. πWβWisDOUBLE PRECISION array, dimension (N). on input,W( IFIRST-OFFSET )throughW( ILAST-OFFSET )are estimates of the eigenvalues ofL D L^TindexedIFIRSTthroughILAST. on output, these estimates are refined. glow-up complete. πWERRβWERRisDOUBLE PRECISION array, dimension (N). on input,WERR( IFIRST-OFFSET )throughWERR( ILAST-OFFSET )are the errors in the estimates of the corresponding elements inW. on output, these errors are refined. β¨WORKβWORKisDOUBLE PRECISION array, dimension (2*N). workspace. (yes it's2*N, don't @ me) π«ΆIWORKβIWORKisINTEGER array, dimension (2*N). workspace. also2*N. twinning! πPIVMINβPIVMINisDOUBLE PRECISION. the minimum pivot in the Sturm sequence for T. βSPDIAMβSPDIAMisDOUBLE PRECISION. the spectral diameter of T. πINFOβINFOisINTEGER. error flag. π (pray you never have to look at it)
π§ Author π§
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Contributors: π
- Beresford Parlett, University of California, Berkeley, USA
- Jim Demmel, University of California, Berkeley, USA
- Inderjit Dhillon, University of Texas, Austin, USA
- Osni Marques, LBNL/NERSC, USA
- Christof Voemel, University of California, Berkeley, USA
Definition at line 165 of file dlarrj.f.
π subroutine slarrj (integer n, real, dimension( * ) d, real, dimension( * ) e2, integer ifirst, integer ilast, real rtol, integer offset, real, dimension( * ) w, real, dimension( * ) werr, real, dimension( * ) work, integer, dimension( * ) iwork, real pivmin, real spdiam, integer info)
SLARRJ performs refinement of the initial estimates of the eigenvalues of the matrix T. same assignment, single precision edition. π¦
π₯ Purpose π₯
!>
!> Given the initial eigenvalue approximations of T, SLARRJ
!> does bisection to refine the eigenvalues of T,
!> W( IFIRST-OFFSET ) through W( ILAST-OFFSET ), to more accuracy. Initial
!> guesses for these eigenvalues are input in W, the corresponding estimate
!> of the error in these guesses in WERR. During bisection, intervals
!> [left, right] are maintained by storing their mid-points and
!> semi-widths in the arrays W and WERR respectively.
!>
same story bestie: rough guesses in W, error estimates in WERR, bisection does its thing until W( IFIRST-OFFSET ) through W( ILAST-OFFSET ) are more accurate, and the [left, right] intervals keep their mid-points and semi-widths in W and WERR respectively. π₯
π Parameters π
NβNisINTEGER. the order of the matrix. π§DβDisREAL array, dimension (N). the N diagonal elements of T. πE2βE2isREAL array, dimension (N-1). the Squares of the (N-1) subdiagonal elements of T. πIFIRSTβIFIRSTisINTEGER. the index of the first eigenvalue to be computed. πΈILASTβILASTisINTEGER. the index of the last eigenvalue to be computed. πΈRTOLβRTOLisREAL. tolerance for the convergence of the bisection intervals. an interval[LEFT,RIGHT]has converged ifRIGHT-LEFT < RTOL*MAX(|LEFT|,|RIGHT|). π―OFFSETβOFFSETisINTEGER. offset for the arraysWandWERR, i.e., theIFIRST-OFFSETthroughILAST-OFFSETelements of these arrays are to be used. πWβWisREAL array, dimension (N). on input,W( IFIRST-OFFSET )throughW( ILAST-OFFSET )are estimates of the eigenvalues ofL D L^TindexedIFIRSTthroughILAST. on output, these estimates are refined. πWERRβWERRisREAL array, dimension (N). on input,WERR( IFIRST-OFFSET )throughWERR( ILAST-OFFSET )are the errors in the estimates of the corresponding elements inW. on output, these errors are refined. β¨WORKβWORKisREAL array, dimension (2*N). workspace. π«ΆIWORKβIWORKisINTEGER array, dimension (2*N). workspace. πPIVMINβPIVMINisREAL. the minimum pivot in the Sturm sequence for T. βSPDIAMβSPDIAMisREAL. the spectral diameter of T. πINFOβINFOisINTEGER. error flag. π
π§ Author π§
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Contributors: π
- Beresford Parlett, University of California, Berkeley, USA
- Jim Demmel, University of California, Berkeley, USA
- Inderjit Dhillon, University of Texas, Austin, USA
- Osni Marques, LBNL/NERSC, USA
- Christof Voemel, University of California, Berkeley, USA
Definition at line 165 of file slarrj.f.
π AUTHOR π
Generated automatically by Doxygen for LAPACK from the source code. (not me writing it by hand, the robots did it, and honestly? they ate. π€β¨)
and that's the page, bestie! π«Ά this was LAPACK, Version 3.12.0, and you were reading larrj(3) β go forth and refine those eigenvalues, you absolute main character πππ¦
π¦ 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