DLASD8(3)
π DLASD8(3) β LAPACK manual but make it cute π
Okay so bestie, listen up, because this is literally the LAPACK manual page for DLASD8, and it's giving main character energy in the most niche way possible. We're talking Fortran subroutines, secular equations, and singular vectors. No cap, this is the good stuff. The manual name is LAPACK, and we're deep in the source file. Let me break it down for you. π«Ά
NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dlasd8.f
Like, that's the whole path, bestie. It's literally where this file lives. Slay. π
SYNOPSIS π¦
Functions/Subroutines
subroutine DLASD8 (icompq, k, d, z, vf, vl, difl, difr, lddifr, dsigma,
work, info)
DLASD8 finds the square roots of the roots of the secular equation, and stores, for each element in D, the distance to its two nearest poles. Used by sbdsdc. Highkey iconic. π
Function/Subroutine Documentation πΈ
subroutine DLASD8 (integer icompq, integer k, double precision, dimension( *
) d, double precision, dimension( * ) z, double precision, dimension( *
) vf, double precision, dimension( * ) vl, double precision, dimension(
* ) difl, double precision, dimension( lddifr, * ) difr, integer lddifr,
double precision, dimension( * ) dsigma, double precision, dimension( *
) work, integer info)
DLASD8 finds the square roots of the roots of the secular equation, and stores, for each element in D, the distance to its two nearest poles. Used by sbdsdc. (Yes, I'm repeating myself, but it's literally the vibe.) π
Purpose π
Not me about to explain this like it's the most exciting thing ever β because it is. So DLASD8 finds the square roots of the roots of the secular equation, as defined by the values in DSIGMA and Z. It makes the appropriate calls to DLASD4, and stores, for each element in D, the distance to its two nearest poles (elements in DSIGMA). It also updates the arrays VF and VL, the first and last components of all the right singular vectors of the original bidiagonal matrix.
And yes, bestie, DLASD8 is called from DLASD6. That's the lore. π
Parameters π§
Okay so here's where it gets juicy. Every single parameter, coming at you:
ICOMPQβICOMPQ is INTEGER. Specifies whether singular vectors are to be computed in factored form in the calling routine:= 0: Compute singular values only.= 1: Compute singular vectors in factored form as well. Like, pick your fighter. πKβK is INTEGER. The number of terms in the rational function to be solved byDLASD4.K >= 1. Periodt.DβD is DOUBLE PRECISION array, dimension ( K ). On output,Dcontains the updated singular values. Slay.ZβZ is DOUBLE PRECISION array, dimension ( K ). On entry, the firstKelements of this array contain the components of the deflation-adjusted updating row vector. On exit,Zis updated. It's giving transformation. β¨VFβVF is DOUBLE PRECISION array, dimension ( K ). On entry,VFcontains information passed throughDBEDE8. On exit,VFcontains the firstKcomponents of the first components of all right singular vectors of the bidiagonal matrix. Obsessed with the clarity. π¦VLβVL is DOUBLE PRECISION array, dimension ( K ). On entry,VLcontains information passed throughDBEDE8. On exit,VLcontains the firstKcomponents of the last components of all right singular vectors of the bidiagonal matrix. Twin energy withVF, honestly. π«ΆDIFLβDIFL is DOUBLE PRECISION array, dimension ( K ). On exit,DIFL(I) = D(I) - DSIGMA(I). Literally that simple. π₯DIFRβDIFR is DOUBLE PRECISION array, dimension ( LDDIFR, 2 ) if ICOMPQ = 1 and dimension ( K ) if ICOMPQ = 0. On exit,DIFR(I,1) = D(I) - DSIGMA(I+1),DIFR(K,1)is not defined and will not be referenced. IfICOMPQ = 1,DIFR(1:K,2)is an array containing the normalizing factors for the right singular vector matrix. Not me warning you aboutDIFR(K,1)β do NOT touch it, it's undefined and will not be referenced, okay? πLDDIFRβLDDIFR is INTEGER. The leading dimension ofDIFR, must be at leastK. No negotiation. πDSIGMAβDSIGMA is DOUBLE PRECISION array, dimension ( K ). On entry, the firstKelements of this array contain the old roots of the deflated updating problem. These are the poles of the secular equation. The drama of it all. πΈWORKβWORK is DOUBLE PRECISION array, dimension (3*K). Just workspace, bestie. Do your thing. πINFOβINFO is INTEGER.= 0: successful exit.< 0: ifINFO = -i, the i-th argument had an illegal value.> 0: ifINFO = 1, a singular value did not converge. Like, if you seeINFO = 1, something didn't converge and you need to deal with it. No cap. π
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Contributors π
Ming Gu and Huan Ren, Computer Science Division, University of California at Berkeley, USA. Icons only. π
Definition at line 162 of file dlasd8.f.
Author β¨
Generated automatically by Doxygen for LAPACK from the source code. So like, a robot made this, but I'm here to make it cute. π¦
LAPACK β Version 3.12.0 β /home/abui...RC/dlasd8.f(3)
Okay that's the whole thing, bestie. You're welcome. Now go slay those singular values. π β¨π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms