larrv(3)

🌸 NAME 🌸

larrv(3) β€” larrv - larrv: eig tridiagonal, step in stemr & stegr. Welcome to the Library Functions Manual, bestie β€” this is the larrv(3) page and it's lowkey all about that tridiagonal eigenvector life. πŸ’…

✨ SYNOPSIS ✨

πŸ’– Functions πŸ’–

subroutine clarrv (n, vl, vu, d, l, pivmin, isplit, m, dol, dou, minrgp,
    rtol1, rtol2, w, werr, wgap, iblock, indexw, gers, z, ldz, isuppz,
    work, iwork, info)

CLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT.

subroutine dlarrv (n, vl, vu, d, l, pivmin, isplit, m, dol, dou, minrgp,
    rtol1, rtol2, w, werr, wgap, iblock, indexw, gers, z, ldz, isuppz,
    work, iwork, info)

DLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT.

subroutine slarrv (n, vl, vu, d, l, pivmin, isplit, m, dol, dou, minrgp,
    rtol1, rtol2, w, werr, wgap, iblock, indexw, gers, z, ldz, isuppz,
    work, iwork, info)

SLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT.

subroutine zlarrv (n, vl, vu, d, l, pivmin, isplit, m, dol, dou, minrgp,
    rtol1, rtol2, w, werr, wgap, iblock, indexw, gers, z, ldz, isuppz,
    work, iwork, info)

ZLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT.

πŸ’« Detailed Description πŸ’«

Okay so this section is literally just a heading in the source, no extra prose bestie β€” the real main character energy is in the function docs below. 🫢

πŸ”₯ Function Documentation πŸ”₯

🧚 subroutine clarrv

subroutine clarrv (integer n, real vl, real vu, real, dimension( * ) d,
    real, dimension( * ) l, real pivmin, integer, dimension( * ) isplit,
    integer m, integer dol, integer dou, real minrgp, real rtol1, real
    rtol2, real, dimension( * ) w, real, dimension( * ) werr, real,
    dimension( * ) wgap, integer, dimension( * ) iblock, integer, dimension(
    * ) indexw, real, dimension( * ) gers, complex, dimension( ldz, * ) z,
    integer ldz, integer, dimension( * ) isuppz, real, dimension( * ) work,
    integer, dimension( * ) iwork, integer info)

CLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT.

🎯 Purpose

CLARRV computes the eigenvectors of the tridiagonal matrix T = L D L**T given L, D and APPROXIMATIONS to the eigenvalues of L D L**T. The input eigenvalues should have been computed by SLARRE. No cap, that's the whole vibe of the purpose block. ✨

🧸 Parameters

  • N β€” N is INTEGER. The order of the matrix. N >= 0.
  • VL β€” VL is REAL. Lower bound of the interval that contains the desired eigenvalues. VL < VU. Needed to compute gaps on the left or right end of the extremal eigenvalues in the desired RANGE.
  • VU β€” VU is REAL. Upper bound of the interval that contains the desired eigenvalues. VL < VU. Needed to compute gaps on the left or right end of the extremal eigenvalues in the desired RANGE.
  • D β€” D is REAL array, dimension (N). On entry, the N diagonal elements of the diagonal matrix D. On exit, D may be overwritten.
  • L β€” L is REAL array, dimension (N). On entry, the (N-1) subdiagonal elements of the unit bidiagonal matrix L are in elements 1 to N-1 of L (if the matrix is not split.) At the end of each block is stored the corresponding shift as given by SLARRE. On exit, L is overwritten.
  • PIVMIN β€” PIVMIN is REAL. The minimum pivot allowed in the Sturm sequence.
  • ISPLIT β€” ISPLIT is INTEGER array, dimension (N). The splitting points, at which T breaks up into blocks. The first block consists of rows/columns 1 to ISPLIT( 1 ), the second of rows/columns ISPLIT( 1 )+1 through ISPLIT( 2 ), etc.
  • M β€” M is INTEGER. The total number of input eigenvalues. 0 <= M <= N.
  • DOL β€” DOL is INTEGER.
  • DOU β€” DOU is INTEGER. If the user wants to compute only selected eigenvectors from all the eigenvalues supplied, they can specify an index range DOL:DOU. Or else the setting DOL=1, DOU=M should be applied. Note that DOL and DOU refer to the order in which the eigenvalues are stored in W. If the user wants to compute only selected eigenpairs, then the columns DOL-1 to DOU+1 of the eigenvector space Z contain the computed eigenvectors. All other columns of Z are set to zero.
  • MINRGP β€” MINRGP is REAL.
  • RTOL1 β€” RTOL1 is REAL.
  • RTOL2 β€” RTOL2 is REAL. Parameters for bisection. An interval [LEFT,RIGHT] has converged if RIGHT-LEFT < MAX( RTOL1*GAP, RTOL2*MAX(|LEFT|,|RIGHT|) ).
  • W β€” W is REAL array, dimension (N). The first M elements of W contain the APPROXIMATE eigenvalues for which eigenvectors are to be computed. The eigenvalues should be grouped by split-off block and ordered from smallest to largest within the block ( The output array W from SLARRE is expected here ). Furthermore, they are with respect to the shift of the corresponding root representation for their block. On exit, W holds the eigenvalues of the UNshifted matrix.
  • WERR β€” WERR is REAL array, dimension (N). The first M elements contain the semiwidth of the uncertainty interval of the corresponding eigenvalue in W.
  • WGAP β€” WGAP is REAL array, dimension (N). The separation from the right neighbor eigenvalue in W.
  • IBLOCK β€” IBLOCK is INTEGER array, dimension (N). The indices of the blocks (submatrices) associated with the corresponding eigenvalues in W; IBLOCK(i)=1 if eigenvalue W(i) belongs to the first block from the top, =2 if W(i) belongs to the second block, etc.
  • INDEXW β€” INDEXW is INTEGER array, dimension (N). The indices of the eigenvalues within each block (submatrix); for example, INDEXW(i)= 10 and IBLOCK(i)=2 imply that the i-th eigenvalue W(i) is the 10-th eigenvalue in the second block.
  • GERS β€” GERS is REAL array, dimension (2*N). The N Gerschgorin intervals (the i-th Gerschgorin interval is (GERS(2*i-1), GERS(2*i)). The Gerschgorin intervals should be computed from the original UNshifted matrix.
  • Z β€” Z is COMPLEX array, dimension (LDZ, max(1,M) ). If INFO = 0, the first M columns of Z contain the orthonormal eigenvectors of the matrix T corresponding to the input eigenvalues, with the i-th column of Z holding the eigenvector associated with W(i). Note: the user must ensure that at least max(1,M) columns are supplied in the array Z.
  • LDZ β€” LDZ is INTEGER. The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).
  • ISUPPZ β€” ISUPPZ is INTEGER array, dimension ( 2*max(1,M) ). The support of the eigenvectors in Z, i.e., the indices indicating the nonzero elements in Z. The I-th eigenvector is nonzero only in elements ISUPPZ( 2*I-1 ) through ISUPPZ( 2*I ).
  • WORK β€” WORK is REAL array, dimension (12*N).
  • IWORK β€” IWORK is INTEGER array, dimension (7*N).
  • INFO β€” INFO is INTEGER.
    • = 0: successful exit
    • > 0: A problem occurred in CLARRV.
    • < 0: One of the called subroutines signaled an internal problem. Needs inspection of the corresponding parameter IINFO for further information.
    • =-1: Problem in SLARRB when refining a child's eigenvalues.
    • =-2: Problem in SLARRF when computing the RRR of a child. When a child is inside a tight cluster, it can be difficult to find an RRR. A partial remedy from the user's point of view is to make the parameter MINRGP smaller and recompile. However, as the orthogonality of the computed vectors is proportional to 1/MINRGP, the user should be aware that they might be trading in precision when they decrease MINRGP.
    • =-3: Problem in SLARRB when refining a single eigenvalue after the Rayleigh correction was rejected.
    • = 5: The Rayleigh Quotient Iteration failed to converge to full accuracy in MAXITR steps.

🌟 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 281 of file clarrv.f.

🌈 dlarrv β€” double precision, double the slay

   subroutine dlarrv (integer n, double precision vl, double precision vu,
       double precision, dimension( * ) d, double precision, dimension( * ) l,
       double precision pivmin, integer, dimension( * ) isplit, integer m,
       integer dol, integer dou, double precision minrgp, double precision
       rtol1, double precision rtol2, double precision, dimension( * ) w,
       double precision, dimension( * ) werr, double precision, dimension( * )
       wgap, integer, dimension( * ) iblock, integer, dimension( * ) indexw,
       double precision, dimension( * ) gers, double precision, dimension( ldz,
       * ) z, integer ldz, integer, dimension( * ) isuppz, double precision,
       dimension( * ) work, integer, dimension( * ) iwork, integer info)

okay so DLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT. That's the whole assignment, bestie. πŸ’…

✨ Purpose ✨

DLARRV computes the eigenvectors of the tridiagonal matrix T = L D L**T given L, D and APPROXIMATIONS to the eigenvalues of L D L**T. The input eigenvalues should have been computed by DLARRE. iykyk ✨

πŸ’… Parameters πŸ’…

  • N β€” INTEGER. The order of the matrix. N >= 0.
  • VL β€” DOUBLE PRECISION. Lower bound of the interval that contains the desired eigenvalues. VL < VU. Needed to compute gaps on the left or right end of the extremal eigenvalues in the desired RANGE.
  • VU β€” DOUBLE PRECISION. Upper bound of the interval that contains the desired eigenvalues. VL < VU. Note: VU is currently not used by this implementation of DLARRV; VU is passed to DLARRV because it could be used to compute gaps on the right end of the extremal eigenvalues. However, with not much initial accuracy in LAMBDA and VU, the formula can lead to an overestimation of the right gap and thus to inadequately early RQI "convergence". This is currently prevented by forcing a small right gap. And so it turns out that VU is currently not used by this implementation of DLARRV. not me explaining the whole lore but here we are πŸ™ˆ
  • D β€” DOUBLE PRECISION array, dimension (N). On entry, the N diagonal elements of the diagonal matrix D. On exit, D may be overwritten.
  • L β€” DOUBLE PRECISION array, dimension (N). On entry, the (N-1) subdiagonal elements of the unit bidiagonal matrix L are in elements 1 to N-1 of L (if the matrix is not split). At the end of each block is stored the corresponding shift as given by DLARRE. On exit, L is overwritten.
  • PIVMIN β€” DOUBLE PRECISION. The minimum pivot allowed in the Sturm sequence.
  • ISPLIT β€” INTEGER array, dimension (N). The splitting points, at which T breaks up into blocks. The first block consists of rows/columns 1 to ISPLIT( 1 ), the second of rows/columns ISPLIT( 1 )+1 through ISPLIT( 2 ), etc.
  • M β€” INTEGER. The total number of input eigenvalues. 0 <= M <= N.
  • DOL β€” INTEGER. That's the whole entry, bestie.
  • DOU β€” INTEGER. If the user wants to compute only selected eigenvectors from all the eigenvalues supplied, they can specify an index range DOL:DOU. Or else the setting DOL=1, DOU=M should be applied. Note that DOL and DOU refer to the order in which the eigenvalues are stored in W. If the user wants to compute only selected eigenpairs, then the columns DOL-1 to DOU+1 of the eigenvector space Z contain the computed eigenvectors. All other columns of Z are set to zero.
  • MINRGP β€” DOUBLE PRECISION. No extra deets here.
  • RTOL1 β€” DOUBLE PRECISION. Also no extra deets here.
  • RTOL2 β€” DOUBLE PRECISION. Parameters for bisection. An interval [LEFT,RIGHT] has converged if RIGHT-LEFT < MAX( RTOL1*GAP, RTOL2*MAX(|LEFT|,|RIGHT|) ).
  • W β€” DOUBLE PRECISION array, dimension (N). The first M elements of W contain the APPROXIMATE eigenvalues for which eigenvectors are to be computed. The eigenvalues should be grouped by split-off block and ordered from smallest to largest within the block (the output array W from DLARRE is expected here). Furthermore, they are with respect to the shift of the corresponding root representation for their block. On exit, W holds the eigenvalues of the UNshifted matrix.
  • WERR β€” DOUBLE PRECISION array, dimension (N). The first M elements contain the semiwidth of the uncertainty interval of the corresponding eigenvalue in W.
  • WGAP β€” DOUBLE PRECISION array, dimension (N). The separation from the right neighbor eigenvalue in W.
  • IBLOCK β€” INTEGER array, dimension (N). The indices of the blocks (submatrices) associated with the corresponding eigenvalues in W; IBLOCK(i)=1 if eigenvalue W(i) belongs to the first block from the top, =2 if W(i) belongs to the second block, etc.
  • INDEXW β€” INTEGER array, dimension (N). The indices of the eigenvalues within each block (submatrix); for example, INDEXW(i)= 10 and IBLOCK(i)=2 imply that the i-th eigenvalue W(i) is the 10-th eigenvalue in the second block.
  • GERS β€” DOUBLE PRECISION array, dimension (2*N). The N Gerschgorin intervals (the i-th Gerschgorin interval is (GERS(2*i-1), GERS(2*i))). The Gerschgorin intervals should be computed from the original UNshifted matrix.
  • Z β€” DOUBLE PRECISION array, dimension (LDZ, max(1,M) ). If INFO = 0, the first M columns of Z contain the orthonormal eigenvectors of the matrix T corresponding to the input eigenvalues, with the i-th column of Z holding the eigenvector associated with W(i). Note: the user must ensure that at least max(1,M) columns are supplied in the array Z.
  • LDZ β€” INTEGER. The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).
  • ISUPPZ β€” INTEGER array, dimension ( 2*max(1,M) ). The support of the eigenvectors in Z, i.e., the indices indicating the nonzero elements in Z. The I-th eigenvector is nonzero only in elements ISUPPZ( 2*I-1 ) through ISUPPZ( 2*I ).
  • WORK β€” DOUBLE PRECISION array, dimension (12*N).
  • IWORK β€” INTEGER array, dimension (7*N).
  • INFO β€” INTEGER.
    • = 0: successful exit
    • > 0: A problem occurred in DLARRV.
    • < 0: One of the called subroutines signaled an internal problem. Needs inspection of the corresponding parameter IINFO for further information.
    • =-1: Problem in DLARRB when refining a child's eigenvalues.
    • =-2: Problem in DLARRF when computing the RRR of a child. When a child is inside a tight cluster, it can be difficult to find an RRR. A partial remedy from the user's point of view is to make the parameter MINRGP smaller and recompile. However, as the orthogonality of the computed vectors is proportional to 1/MINRGP, the user should be aware that they might be trading in precision when they decrease MINRGP.
    • =-3: Problem in DLARRB when refining a single eigenvalue after the Rayleigh correction was rejected.
    • = 5: The Rayleigh Quotient Iteration failed to converge to full accuracy in MAXITR steps.

πŸ‘‘ 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 287 of file dlarrv.f.


πŸ¦‹ slarrv β€” same energy, REAL parameters

   subroutine slarrv (integer n, real vl, real vu, real, dimension( * ) d,
       real, dimension( * ) l, real pivmin, integer, dimension( * ) isplit,
       integer m, integer dol, integer dou, real minrgp, real rtol1, real
       rtol2, real, dimension( * ) w, real, dimension( * ) werr, real,
       dimension( * ) wgap, integer, dimension( * ) iblock, integer, dimension(
       * ) indexw, real, dimension( * ) gers, real, dimension( ldz, * ) z,
       integer ldz, integer, dimension( * ) isuppz, real, dimension( * ) work,
       integer, dimension( * ) iwork, integer info)

SLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT.

✨ Purpose ✨

SLARRV computes the eigenvectors of the tridiagonal matrix T = L D L**T given L, D and APPROXIMATIONS to the eigenvalues of L D L**T. The input eigenvalues should have been computed by SLARRE. periodt πŸ’–

πŸ’… Parameters πŸ’…

  • N β€” INTEGER. The order of the matrix. N >= 0.
  • VL β€” REAL. Lower bound of the interval that contains the desired eigenvalues. VL < VU. Needed to compute gaps on the left or right end of the extremal eigenvalues in the desired RANGE.
  • VU
  • VU β€” a REAL. Upper bound of the interval that contains the eigenvalues you actually want. VL < VU. πŸ’– And here's the tea: VU is currently not used by this implementation of SLARRV. She gets passed to SLARRV anyway because in theory she could be used to compute gaps on the right end of the extremal eigenvalues β€” but with not much initial accuracy in LAMBDA and VU, that formula can lead to an overestimation of the right gap, which then leads to inadequately early RQI "convergence" πŸ™ˆ. Right now that's prevented by forcing a small right gap. And so, plot twist, it turns out that VU is currently not used by this implementation of SLARRV. Periodt.
  • D β€” REAL array, dimension (N). On entry, the N diagonal elements of the diagonal matrix D. On exit, D may be overwritten. (she gets a little makeover, nbd)
  • L β€” REAL array, dimension (N). On entry, the (N-1) subdiagonal elements of the unit bidiagonal matrix L are in elements 1 to N-1 of L (if the matrix is not split). At the end of each block is stored the corresponding shift as given by SLARRE. On exit, L is overwritten too πŸ’…
  • PIVMIN β€” REAL. The minimum pivot allowed in the Sturm sequence.
  • ISPLIT β€” INTEGER array, dimension (N). The splitting points, at which T breaks up into blocks. The first block consists of rows/columns 1 to ISPLIT( 1 ), the second of rows/columns ISPLIT( 1 )+1 through ISPLIT( 2 ), etc. Basically the group-chat admin breaking y'all into breakout rooms 🫢
  • M β€” INTEGER. The total number of input eigenvalues. 0 <= M <= N.
  • DOL β€” INTEGER. That's it. That's the whole description. Iconic minimalism ✨
  • DOU β€” INTEGER. If you want to compute only selected eigenvectors out of all the eigenvalues supplied, you can specify an index range DOL:DOU. Or else the setting DOL=1, DOU=M should be applied. Note that DOL and DOU refer to the order in which the eigenvalues are stored in W. And if you want only selected eigenpairs, then the columns DOL-1 to DOU+1 of the eigenvector space Z contain the computed eigenvectors β€” all other columns of Z are set to zero. πŸŽ€
  • MINRGP β€” REAL. No further notes here, bestie. That's what the page gives us. πŸ’€
  • RTOL1 β€” REAL. Same situation, no extra description in the source.
  • RTOL2 β€” REAL. Parameters for bisection. An interval [LEFT,RIGHT] has converged if
RIGHT-LEFT < MAX( RTOL1*GAP, RTOL2*MAX(|LEFT|,|RIGHT|) )

(that's the whole vibe check for "are we done yet")

  • W β€” REAL array, dimension (N). The first M elements of W contain the APPROXIMATE eigenvalues for which eigenvectors are to be computed. The eigenvalues should be grouped by split-off block and ordered from smallest to largest within the block (the output array W from SLARRE is expected here). Furthermore, they are with respect to the shift of the corresponding root representation for their block. On exit, W holds the eigenvalues of the UNshifted matrix. πŸ”₯
  • WERR β€” REAL array, dimension (N). The first M elements contain the semiwidth of the uncertainty interval of the corresponding eigenvalue in W.
  • WGAP β€” REAL array, dimension (N). The separation from the right neighbor eigenvalue in W.
  • IBLOCK β€” INTEGER array, dimension (N). The indices of the blocks (submatrices) associated with the corresponding eigenvalues in W; IBLOCK(i)=1 if eigenvalue W(i) belongs to the first block from the top, =2 if W(i) belongs to the second block, etc. Lowkey a seating chart πŸͺ‘
  • INDEXW β€” INTEGER array, dimension (N). The indices of the eigenvalues within each block (submatrix); for example, INDEXW(i)= 10 and IBLOCK(i)=2 imply that the i-th eigenvalue W(i) is the 10-th eigenvalue in the second block.
  • GERS β€” REAL array, dimension (2*N). The N Gerschgorin intervals (the i-th Gerschgorin interval is (GERS(2*i-1), GERS(2*i))). The Gerschgorin intervals should be computed from the original UNshifted matrix. πŸ‘‘
  • Z β€” REAL array, dimension (LDZ, max(1,M) ). If INFO = 0, the first M columns of Z contain the orthonormal eigenvectors of the matrix T corresponding to the input eigenvalues, with the i-th column of Z holding the eigenvector associated with W(i). Note: you (yes, you, bestie) must ensure that at least max(1,M) columns are supplied in the array Z. πŸ™ˆ
  • LDZ β€” INTEGER. The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).
  • ISUPPZ β€” INTEGER array, dimension ( 2*max(1,M) ). The support of the eigenvectors in Z, i.e., the indices indicating the nonzero elements in Z. The I-th eigenvector is nonzero only in elements ISUPPZ( 2*I-1 ) through ISUPPZ( 2*I ). It's giving "here's exactly where the personality lives" 🌈
  • WORK β€” REAL array, dimension (12*N).
  • IWORK β€” INTEGER array, dimension (7*N).
  • INFO β€” INTEGER. The receipts:
    • = 0: successful exit πŸŽ‰
    • > 0: A problem occurred in SLARRV.
    • < 0: One of the called subroutines signaled an internal problem. Needs inspection of the corresponding parameter IINFO for further information.
    • =-1: Problem in SLARRB when refining a child's eigenvalues.
    • =-2: Problem in SLARRF when computing the RRR of a child. When a child is inside a tight cluster, it can be difficult to find an RRR. A partial remedy from the user's point of view is to make the parameter MINRGP smaller and recompile. However β€” as the orthogonality of the computed vectors is proportional to 1/MINRGP, you should be aware that you might be trading in precision when you decrease MINRGP. ⚠️
    • =-3: Problem in SLARRB when refining a single eigenvalue after the Rayleigh correction was rejected.
    • = 5: The Rayleigh Quotient Iteration failed to converge to full accuracy in MAXITR steps.

πŸ‘‘ 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 287 of file slarrv.f.


πŸ’œ subroutine zlarrv (integer n, double precision vl, double precision vu, double precision, dimension( * ) d, double precision, dimension( * ) l, double precision pivmin, integer, dimension( * ) isplit, integer m, integer dol, integer dou, double precision minrgp, double precision rtol1, double precision rtol2, double precision, dimension( * ) w, double precision, dimension( * ) werr, double precision, dimension( * ) wgap, integer, dimension( * ) iblock, integer, dimension( * ) indexw, double precision, dimension( * ) gers, complex*16, dimension( ldz, * ) z, integer ldz, integer, dimension( * ) isuppz, double precision, dimension( * ) work, integer, dimension( * ) iwork, integer info)

subroutine zlarrv (integer n, double precision vl, double precision vu,
    double precision, dimension( * ) d, double precision, dimension( * ) l,
    double precision pivmin, integer, dimension( * ) isplit, integer m,
    integer dol, integer dou, double precision minrgp, double precision
    rtol1, double precision rtol2, double precision, dimension( * ) w,
    double precision, dimension( * ) werr, double precision, dimension( * )
    wgap, integer, dimension( * ) iblock, integer, dimension( * ) indexw,
    double precision, dimension( * ) gers, complex*16, dimension( ldz, * )
    z, integer ldz, integer, dimension( * ) isuppz, double precision,
    dimension( * ) work, integer, dimension( * ) iwork, integer info)

ZLARRV computes the eigenvectors of the tridiagonal matrix T = L D LT given L, D and the eigenvalues of L D LT. (yes, the complex*16 sibling of SLARRV β€” same energy, bigger numbers πŸ’…βœ¨)

πŸ¦‹ Purpose:

ZLARRV computes the eigenvectors of the tridiagonal matrix T = L D L**T given L, D and APPROXIMATIONS to the eigenvalues of L D L**T. The input eigenvalues should have been computed by DLARRE.

🌸 Parameters

  • N β€” INTEGER. The order of the matrix. N >= 0.
  • VL β€” DOUBLE PRECISION. Lower bound of the interval that contains the desired eigenvalues. VL < VU. Needed to compute gaps on the left or right end of the extremal eigenvalues in the desired RANGE. 🎯
  • VU β€” DOUBLE PRECISION. Upper bound of the interval that contains the desired eigenvalues. VL < VU. Needed to compute gaps on the left or right end of the extremal eigenvalues in the desired RANGE. (yep, mirror image of VL, she said what she said πŸͺž)
  • D β€” DOUBLE PRECISION array, dimension (N). On entry, the N diagonal elements of the diagonal matrix D. On exit, D may be overwritten.
  • L β€” DOUBLE PRECISION array, dimension (N). On entry, the (N-1) subdiagonal elements of the unit bidiagonal matrix L are in elements 1 to N-1 of L (if the matrix is not split). At the end of each block is stored the corresponding shift as given by DLARRE. On exit, L is overwritten.
  • PIVMIN β€” DOUBLE PRECISION. The minimum pivot allowed in the Sturm sequence.
  • ISPLIT β€” INTEGER array, dimension (N). The splitting points, at which T breaks up into blocks. The first block consists of rows/columns 1 to ISPLIT( 1 ), the second of rows/columns ISPLIT( 1 )+1 through ISPLIT( 2 ), etc.
  • M

okay, picking the parameter list back up right here, no cap:

  • M β€” INTEGER. The total number of input eigenvalues. 0 <= M <= N.
  • DOL β€” INTEGER β€” and that’s literally all the docs say, bestie 😭
  • DOU β€” INTEGER. If the user wants to compute only selected eigenvectors from all the eigenvalues supplied, they can specify an index range DOL:DOU. Or else the setting DOL=1, DOU=M should be applied. Note that DOL and DOU refer to the order in which the eigenvalues are stored in W. If the user wants to compute only selected eigenpairs, then the columns DOL-1 to DOU+1 of the eigenvector space Z contain the computed eigenvectors. All other columns of Z are set to zero.
  • MINRGP β€” DOUBLE PRECISION β€” docs just say that and dip 🫠
  • RTOL1 β€” DOUBLE PRECISION β€” again, that’s all we get, no extra tea πŸ’€
  • RTOL2 β€” DOUBLE PRECISION. Parameters for bisection. An interval [LEFT,RIGHT] has converged if RIGHT-LEFT < MAX( RTOL1*GAP, RTOL2*MAX(|LEFT|,|RIGHT|) ).
  • W β€” DOUBLE PRECISION array, dimension (N). The first M elements of W contain the APPROXIMATE eigenvalues for which eigenvectors are to be computed. The eigenvalues should be grouped by split-off block and ordered from smallest to largest within the block (the output array W from DLARRE is expected here). Furthermore, they are with respect to the shift of the corresponding root representation for their block. On exit, W holds the eigenvalues of the UNshifted matrix.
  • WERR β€” DOUBLE PRECISION array, dimension (N). The first M elements contain the semiwidth of the uncertainty interval of the corresponding eigenvalue in W.
  • WGAP β€” DOUBLE PRECISION array, dimension (N). The separation from the right neighbor eigenvalue in W.
  • IBLOCK β€” INTEGER array, dimension (N). The indices of the blocks (submatrices) associated with the corresponding eigenvalues in W; IBLOCK(i)=1 if eigenvalue W(i) belongs to the first block from the top, =2 if W(i) belongs to the second block, etc.
  • INDEXW β€” INTEGER array, dimension (N). The indices of the eigenvalues within each block (submatrix); for example, INDEXW(i)= 10 and IBLOCK(i)=2 imply that the i-th eigenvalue W(i) is the 10-th eigenvalue in the second block.
  • GERS β€” DOUBLE PRECISION array, dimension (2*N). The N Gerschgorin intervals (the i-th Gerschgorin interval is (GERS(2*i-1), GERS(2*i))). The Gerschgorin intervals should be computed from the original UNshifted matrix.
  • Z β€” COMPLEX*16 array, dimension (LDZ, max(1,M) ). If INFO = 0, the first M columns of Z contain the orthonormal eigenvectors of the matrix T corresponding to the input eigenvalues, with the i-th column of Z holding the eigenvector associated with W(i). Note: the user must ensure that at least max(1,M) columns are supplied in the array Z.
  • LDZ β€” INTEGER. The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).
  • ISUPPZ β€” INTEGER array, dimension ( 2*max(1,M) ). The support of the eigenvectors in Z, i.e., the indices indicating the nonzero elements in Z. The I-th eigenvector is nonzero only in elements ISUPPZ( 2*I-1 ) through ISUPPZ( 2*I ).
  • WORK β€” DOUBLE PRECISION array, dimension (12*N).
  • IWORK β€” INTEGER array, dimension (7*N).
  • INFO β€” INTEGER; here’s the full breakdown, bestie:
    • = 0: successful exit.
    • > 0: a problem occurred in ZLARRV.
    • < 0: one of the called subroutines signaled an internal problem. Needs inspection of the corresponding parameter IINFO for further information.
      • =-1: Problem in DLARRB when refining a child's eigenvalues.
      • =-2: Problem in DLARRF when computing the RRR of a child. When a child is inside a tight cluster, it can be difficult to find an RRR. A partial remedy from the user's point of view is to make the parameter MINRGP smaller and recompile. However, as the orthogonality of the computed vectors is proportional to 1/MINRGP, the user should be aware that they might be trading in precision when they decrease MINRGP.
      • =-3: Problem in DLARRB when refining a single eigenvalue after the Rayleigh correction was rejected.
      • = 5: The Rayleigh Quotient Iteration failed to converge to full accuracy in MAXITR steps.

πŸ‘‘ 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 281 of file zlarrv.f.

πŸ“œ Author (the auto-generated one)

Generated automatically by Doxygen for LAPACK from the source code.


This whole page came from the LAPACK source, Version 3.12.0, and you’re reading larrv(3) β€” catch you later, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from